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

a fix for the solaris fix itself ;)

上级 5043dff3
......@@ -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
......
/* 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__ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册