提交 0bc1b2f6 编写于 作者: A antirez

a fix for the solaris fix itself ;)

上级 5043dff3
...@@ -58,7 +58,8 @@ ...@@ -58,7 +58,8 @@
#include <sys/resource.h> #include <sys/resource.h>
#include <limits.h> #include <limits.h>
#include <math.h> #include <math.h>
#if defined(__sun) && defined(__GNUC__)
#if defined(__sun)
#include "solarisfixes.h" #include "solarisfixes.h"
#endif #endif
......
/* Solaris specific fixes */ /* Solaris specific fixes */
#if defined(__GNUC__)
#undef isnan #undef isnan
#define isnan(x) \ #define isnan(x) \
__extension__({ __typeof (x) __x_a = (x); \ __extension__({ __typeof (x) __x_a = (x); \
...@@ -14,3 +15,4 @@ ...@@ -14,3 +15,4 @@
#define isinf(x) \ #define isinf(x) \
__extension__ ({ __typeof (x) __x_i = (x); \ __extension__ ({ __typeof (x) __x_i = (x); \
__builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); }) __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })
#endif /* __GNUC__ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册