Commit 7c4decb1 authored by Matt Stancliff's avatar Matt Stancliff
Browse files

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.
parent 3e0e51dd
...@@ -32,6 +32,10 @@ ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment