mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -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 <limits.h>
|
||||
#include <math.h>
|
||||
#if defined(__sun) && defined(__GNUC__)
|
||||
|
||||
#if defined(__sun)
|
||||
#include "solarisfixes.h"
|
||||
#endif
|
||||
|
||||
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user