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
45# ifndef CONFIG_TCC_STATIC45# ifndef CONFIG_TCC_STATIC
46# include <dlfcn.h>46# include <dlfcn.h>
47# endif47# 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)
49extern float strtof (const char *__nptr, char **__endptr);51extern float strtof (const char *__nptr, char **__endptr);
50extern long double strtold (const char *__nptr, char **__endptr);52extern long double strtold (const char *__nptr, char **__endptr);
53# endif
51#endif54#endif
52 55
53#ifdef _WIN3256#ifdef _WIN32
@@ -1612,7 +1615,6 @@ ST_FUNC void gen_opl(int op); · 1558 unmodified lines
1612ST_FUNC void gen_vla_result(int addr);1615ST_FUNC void gen_vla_result(int addr);
1613#endif1616#endif
1614ST_FUNC void gen_cvt_sxtw(void);1617ST_FUNC void gen_cvt_sxtw(void);
1615ST_FUNC void gen_cvt_csti(int t);
1616#endif1618#endif
1617 1619
1618/* ------------ arm-gen.c ------------ */1620/* ------------ 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