]> git.saurik.com Git - redis.git/commitdiff
a fix for the solaris fix itself ;)
authorantirez <antirez@gmail.com>
Tue, 27 Oct 2009 17:39:47 +0000 (18:39 +0100)
committerantirez <antirez@gmail.com>
Tue, 27 Oct 2009 17:39:47 +0000 (18:39 +0100)
redis.c
solarisfixes.h

diff --git a/redis.c b/redis.c
index e26e676f64cdd397ac706dcb2514a4a34264952b..f625333147b3bd55abef59f599c7054fbe6612ea 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -58,7 +58,8 @@
 #include <sys/resource.h>
 #include <limits.h>
 #include <math.h>
-#if defined(__sun) && defined(__GNUC__)
+
+#if defined(__sun)
 #include "solarisfixes.h"
 #endif
 
index 36f1920162ce7ecd43d2abe0da51c0d896bac9c7..8786965ae30561471502c3ed435d3f3c09e0660e 100644 (file)
@@ -1,5 +1,6 @@
 /* Solaris specific fixes */
 
+#if defined(__GNUC__)
 #undef isnan
 #define isnan(x) \
      __extension__({ __typeof (x) __x_a = (x); \
@@ -14,3 +15,4 @@
 #define isinf(x) \
      __extension__ ({ __typeof (x) __x_i = (x); \
      __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })
+#endif /* __GNUC__ */