mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 05:16:18 +00:00
Silence this warning too for C89 - not correct but whatever -
never used
This commit is contained in:
parent
4b9143430c
commit
1516ee8e76
@ -803,8 +803,10 @@ void config_set_double(config_file_t *conf, const char *key, double val)
|
|||||||
char buf[128] = {0};
|
char buf[128] = {0};
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
snprintf(buf, sizeof(buf), "%f", (float)val);
|
snprintf(buf, sizeof(buf), "%f", (float)val);
|
||||||
#else
|
#elif defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
|
||||||
snprintf(buf, sizeof(buf), "%lf", val);
|
snprintf(buf, sizeof(buf), "%lf", val);
|
||||||
|
#else
|
||||||
|
snprintf(buf, sizeof(buf), "%f", (float)val);
|
||||||
#endif
|
#endif
|
||||||
config_set_string(conf, key, buf);
|
config_set_string(conf, key, buf);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user