From 61933a96a6b31c0d3e5ec4eb7e963f176d6bd580 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 1 Oct 2025 19:28:01 +0200 Subject: [PATCH] CLEANUP: mjson: remove unused defines and math.h Remove unused defines for MSVC which is not used in the case of haproxy, and remove math.h which is not used as well. --- src/mjson.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/mjson.c b/src/mjson.c index 35ff87249..3214a5bf1 100644 --- a/src/mjson.c +++ b/src/mjson.c @@ -20,20 +20,9 @@ // SOFTWARE. #include -#include #include -#if defined(_MSC_VER) -#define alloca(x) _alloca(x) -#endif - -#if defined(_MSC_VER) && _MSC_VER < 1700 -#define va_copy(x, y) (x) = (y) -#define isinf(x) !_finite(x) -#define isnan(x) _isnan(x) -#endif - static double mystrtod(const char *str, char **end); static int mjson_esc(int c, int esc) { -- 2.47.3