]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mjson: remove unused defines and math.h
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 1 Oct 2025 17:28:01 +0000 (19:28 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 3 Oct 2025 14:09:51 +0000 (16:09 +0200)
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

index 35ff87249766ae0f2a1a98a8c5d49fdf837e3ff0..3214a5bf1d409c4772c56075d0d91f32ac0afe39 100644 (file)
 // SOFTWARE.
 
 #include <float.h>
-#include <math.h>
 
 #include <import/mjson.h>
 
-#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) {