X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/5043dff351f4ad9095f66bbef8e08d363cd959a0..9ae6b0be4ac05c919b943ed29ffa20e5560855a2:/solarisfixes.h diff --git a/solarisfixes.h b/solarisfixes.h index 36f19201..ce8e7b6f 100644 --- a/solarisfixes.h +++ b/solarisfixes.h @@ -1,5 +1,6 @@ /* Solaris specific fixes */ +#if defined(__GNUC__) #undef isnan #define isnan(x) \ __extension__({ __typeof (x) __x_a = (x); \ @@ -14,3 +15,7 @@ #define isinf(x) \ __extension__ ({ __typeof (x) __x_i = (x); \ __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); }) + +#define u_int uint +#define u_int32_t uint32_t +#endif /* __GNUC__ */