aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2011-07-15 18:13:56 +0200
committerThomas Preud'homme <robotux@celest.fr>2011-08-12 18:43:37 +0200
commit2dd3fb103e9fc9aa71e08b95fe1656ba0148307d (patch)
treeacc7c79cd835515c8f8bbd4621ff7fd1eb4b4023
parentab7ed48ee8c244276c73e6893cf8ce2c52d9b6db (diff)
downloadtinycc-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.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/tcc.h b/tcc.h
index 39b0f67..d158829 100644
--- a/tcc.h
+++ b/tcc.h
@@ -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);