We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5043dff commit 0bc1b2fCopy full SHA for 0bc1b2f
redis.c
@@ -58,7 +58,8 @@
58
#include <sys/resource.h>
59
#include <limits.h>
60
#include <math.h>
61
-#if defined(__sun) && defined(__GNUC__)
+
62
+#if defined(__sun)
63
#include "solarisfixes.h"
64
#endif
65
solarisfixes.h
@@ -1,5 +1,6 @@
1
/* Solaris specific fixes */
2
3
+#if defined(__GNUC__)
4
#undef isnan
5
#define isnan(x) \
6
__extension__({ __typeof (x) __x_a = (x); \
@@ -14,3 +15,4 @@
14
15
#define isinf(x) \
16
__extension__ ({ __typeof (x) __x_i = (x); \
17
__builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })
18
+#endif /* __GNUC__ */
0 commit comments