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-05-12 11:09:07 -04:00
parent 3e0e51dd9f
commit 7c4decb101

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;