1234567891011121314151617181920 |
- --- shellinabox-2.10.orig/libhttp/httpconnection.c 2015-09-25 10:55:38.350974827 +0000
- +++ shellinabox-2.10/libhttp/httpconnection.c 2015-09-25 10:56:23.462944723 +0000
- @@ -69,6 +69,17 @@
- #define max(a, b) ({ typeof(a) _a = (a); typeof(b) _b = (b); \
- _a > _b ? _a : _b; })
-
- +#undef isnan
- +#ifndef isnan
- +# define isnan(x) \
- + (sizeof (x) == sizeof (long double) ? isnan_ld (x) \
- + : sizeof (x) == sizeof (double) ? isnan_d (x) \
- + : isnan_f (x))
- +static inline int isnan_f (float x) { return x != x; }
- +static inline int isnan_d (double x) { return x != x; }
- +static inline int isnan_ld (long double x) { return x != x; }
- +#endif
- +
- #include "libhttp/httpconnection.h"
- #include "logging/logging.h"
-
|