mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Revert back to sscanf for versions of MSVC prior to MSVC2013 - prior
to MSVC2013, MSVC did not yet support strtof
This commit is contained in:
parent
3ebfcbc7c7
commit
c3483654c9
@ -1072,7 +1072,11 @@ int setting_set_with_string_representation(rarch_setting_t* setting,
|
||||
}
|
||||
break;
|
||||
case ST_FLOAT:
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1800
|
||||
sscanf(value, "%f", setting->value.target.fraction);
|
||||
#else
|
||||
*setting->value.target.fraction = strtof(value, &ptr);
|
||||
#endif
|
||||
if (flags & SD_FLAG_HAS_RANGE)
|
||||
{
|
||||
if (setting->enforce_minrange && *setting->value.target.fraction < min)
|
||||
|
Loading…
x
Reference in New Issue
Block a user