From: William Lallemand Date: Wed, 1 Oct 2025 17:28:01 +0000 (+0200) Subject: CLEANUP: mjson: remove unused defines and math.h X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61933a96a6b31c0d3e5ec4eb7e963f176d6bd580;p=thirdparty%2Fhaproxy.git 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. --- 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) {