From 7c4decb10183224ad9b33505bd6d5cbdb5d8d98b Mon Sep 17 00:00:00 2001 From: Matt Stancliff <matt@genges.com> Date: Mon, 12 May 2014 11:09:07 -0400 Subject: [PATCH] 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. --- src/object.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/object.c b/src/object.c index 46f1f3f8..501dcc32 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;