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.
This commit is contained in:
Matt Stancliff
2014-06-09 11:43:17 +02:00
committed by antirez
parent 28fef5c57b
commit 726d343ad7
+4
View File
@@ -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;