mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-13 05:30:59 +01:00
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:
parent
8ea8aaace2
commit
61933a96a6
11
src/mjson.c
11
src/mjson.c
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user