From 1516ee8e765e8b221d5a2931a6c958e47a4ac226 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 25 Feb 2016 22:36:08 +0100 Subject: [PATCH] Silence this warning too for C89 - not correct but whatever - never used --- libretro-common/file/config_file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/config_file.c b/libretro-common/file/config_file.c index dabbbe952d..219fa19b35 100644 --- a/libretro-common/file/config_file.c +++ b/libretro-common/file/config_file.c @@ -803,8 +803,10 @@ void config_set_double(config_file_t *conf, const char *key, double val) char buf[128] = {0}; #ifdef __cplusplus snprintf(buf, sizeof(buf), "%f", (float)val); -#else +#elif defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L snprintf(buf, sizeof(buf), "%lf", val); +#else + snprintf(buf, sizeof(buf), "%f", (float)val); #endif config_set_string(conf, key, buf); }