NetBoot/vasm-1/tfloat.h
2020-06-20 09:33:04 +08:00

11 lines
321 B
C

/* tfloat.h Floating point type and string conversion function. */
/* (c) 2014 Frank Wille */
#if defined(__VBCC__) || (defined(_MSC_VER) && _MSC_VER < 1800) || defined(__CYGWIN__)
typedef double tfloat;
#define strtotfloat(n,e) strtod(n,e)
#else
typedef long double tfloat;
#define strtotfloat(n,e) strtold(n,e)
#endif