diff options
author | Matt Stancliff <matt@genges.com> | 2014-05-12 11:09:07 -0400 |
---|---|---|
committer | Matt Stancliff <matt@genges.com> | 2014-05-12 11:11:09 -0400 |
commit | 7c4decb10183224ad9b33505bd6d5cbdb5d8d98b (patch) | |
tree | 7446bf8b06f166a46d9aa3fbd9d11e1cbf247481 /src/object.c | |
parent | 3e0e51dd9fcfa9c361d716ba2fc935a40fadace3 (diff) | |
download | redis-7c4decb10183224ad9b33505bd6d5cbdb5d8d98b.tar.gz |
Fix lack of strtold under Cygwin
Renaming strtold to strtod then casting
the result is the standard way of dealing with
no strtold in Cygwin.
Diffstat (limited to 'src/object.c')
-rw-r--r-- | src/object.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/object.c b/src/object.c index 46f1f3f8b..501dcc32f 100644 --- a/src/object.c +++ b/src/object.c @@ -32,6 +32,10 @@ #include <math.h> #include <ctype.h> +#ifdef __CYGWIN__ +#define strtold(a,b) ((long double)strtod((a),(b))) +#endif + robj *createObject(int type, void *ptr) { robj *o = zmalloc(sizeof(*o)); o->type = type; |