mirror of https://mirror.osredm.com/root/redis.git
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:
parent
3e0e51dd9f
commit
7c4decb101
|
@ -32,6 +32,10 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
#define strtold(a,b) ((long double)strtod((a),(b)))
|
||||||
|
#endif
|
||||||
|
|
||||||
robj *createObject(int type, void *ptr) {
|
robj *createObject(int type, void *ptr) {
|
||||||
robj *o = zmalloc(sizeof(*o));
|
robj *o = zmalloc(sizeof(*o));
|
||||||
o->type = type;
|
o->type = type;
|
||||||
|
|
Loading…
Reference in New Issue