Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5043dff3
Commit
5043dff3
authored
Oct 27, 2009
by
antirez
Browse files
More Solaris fixes
parent
d7f43c08
Changes
2
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
5043dff3
...
@@ -58,6 +58,9 @@
...
@@ -58,6 +58,9 @@
#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__)
#include "solarisfixes.h"
#endif
#include "redis.h"
#include "redis.h"
#include "ae.h"
/* Event driven programming library */
#include "ae.h"
/* Event driven programming library */
...
...
solarisfixes.h
0 → 100644
View file @
5043dff3
/* Solaris specific fixes */
#undef isnan
#define isnan(x) \
__extension__({ __typeof (x) __x_a = (x); \
__builtin_expect(__x_a != __x_a, 0); })
#undef isfinite
#define isfinite(x) \
__extension__ ({ __typeof (x) __x_f = (x); \
__builtin_expect(!isnan(__x_f - __x_f), 1); })
#undef isinf
#define isinf(x) \
__extension__ ({ __typeof (x) __x_i = (x); \
__builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment