History

tcc.h: define strto{f,ld} only when necessary

Sigrid Solveig Haflínudóttir committed 10 months ago

Commit fd86d391 parent bbe19211 file · +4 −2Browse files

Unified · Split

tcc.h+4−2
@@ -45,9 +45,12 @@ · 44 unmodified lines
4545 # ifndef CONFIG_TCC_STATIC
4646 # include <dlfcn.h>
4747 # endif
48−/* XXX: need to define this to use them in non ISOC99 context */
48+# if !defined(_ISOC99_SOURCE) && \
49+ (!defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 600) && \
50+ (!defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200112L)
4951 extern float strtof (const char *__nptr, char **__endptr);
5052 extern long double strtold (const char *__nptr, char **__endptr);
53+# endif
5154 #endif
5255
5356 #ifdef _WIN32
@@ -1612,7 +1615,6 @@ ST_FUNC void gen_opl(int op); · 1558 unmodified lines
16121615 ST_FUNC void gen_vla_result(int addr);
16131616 #endif
16141617 ST_FUNC void gen_cvt_sxtw(void);
1615−ST_FUNC void gen_cvt_csti(int t);
16161618 #endif
16171619
16181620 /* ------------ arm-gen.c ------------ */

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