History

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.

Thomas Preud'homme committed 15 years ago

Commit 2dd3fb11 parent ab7ed481 file · +0 −12Browse files

Unified · Split

tcc.h+0−12
@@ -873,18 +873,6 @@ enum tcc_token { · 872 unmodified lines
873873 #define strtof (float)strtod
874874 #define strtoll (long long)strtol
875875 #endif
876−#elif defined(TCC_UCLIBC) || defined(__FreeBSD__) \
877− || defined(__FreeBSD_kernel__) || defined(__DragonFly__) \
878− || defined(__OpenBSD__)
879−/* currently incorrect */
880−static inline long double strtold(const char *nptr, char **endptr)
881−{
882− return (long double)strtod(nptr, endptr);
883−}
884−static inline float strtof(const char *nptr, char **endptr)
885−{
886− return (float)strtod(nptr, endptr);
887−}
888876 #else
889877 /* XXX: need to define this to use them in non ISOC99 context */
890878 extern float strtof (const char *__nptr, char **__endptr);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t