mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
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…
x
Reference in New Issue
Block a user