mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
a fix for the solaris fix itself ;)
This commit is contained in:
parent
5043dff351
commit
0bc1b2f651
3
redis.c
3
redis.c
@ -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
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* 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 @@
|
|||||||
#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__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user