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.
This commit is contained in:
William Lallemand 2025-10-01 19:28:01 +02:00
parent 8ea8aaace2
commit 61933a96a6

View File

@ -20,20 +20,9 @@
// 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) {