mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05: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 <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;
|
||||
|
Loading…
Reference in New Issue
Block a user