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