diff options
| author | Thomas Preud'homme <thomas.preudhomme@celest.fr> | 2011-07-15 18:13:56 +0200 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2011-08-12 18:43:37 +0200 |
| commit | 2dd3fb103e9fc9aa71e08b95fe1656ba0148307d (patch) | |
| tree | acc7c79cd835515c8f8bbd4621ff7fd1eb4b4023 | |
| parent | ab7ed48ee8c244276c73e6893cf8ce2c52d9b6db (diff) | |
| download | tinycc-2dd3fb103e9fc9aa71e08b95fe1656ba0148307d.tar.gz tinycc-2dd3fb103e9fc9aa71e08b95fe1656ba0148307d.tar.bz2 | |
Don't define strtold and strtof on *BSD + uClibc
Don't define strtold and strtof on *BSD and uClibc as they are already
defined there since:
* 2001 (FreeBSD 4.4)
* 2009 (OpenBSD 4.5)
* 2009 (DragonFlyBSD)
* 2002 (uClibc)
See
http://lists.nongnu.org/archive/html/tinycc-devel/2011-07/msg00025.html
for a bit more details.
| -rw-r--r-- | tcc.h | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -873,18 +873,6 @@ enum tcc_token { #define strtof (float)strtod #define strtoll (long long)strtol #endif -#elif defined(TCC_UCLIBC) || defined(__FreeBSD__) \ - || defined(__FreeBSD_kernel__) || defined(__DragonFly__) \ - || defined(__OpenBSD__) -/* currently incorrect */ -static inline long double strtold(const char *nptr, char **endptr) -{ - return (long double)strtod(nptr, endptr); -} -static inline float strtof(const char *nptr, char **endptr) -{ - return (float)strtod(nptr, endptr); -} #else /* XXX: need to define this to use them in non ISOC99 context */ extern float strtof (const char *__nptr, char **__endptr); |
