Fix for older MSVC lacking strtof

This commit is contained in:
Chris Robinson
2018-03-21 01:56:42 -07:00
parent c40b4ce3f2
commit 55a73b8df9
+7
View File
@@ -45,6 +45,13 @@
#endif
#if defined(_MSC_VER) && (_MSC_VER < 1900)
static float msvc_strtof(const char *str, char **end)
{ return (float)strtod(str, end); }
#define strtof msvc_strtof
#endif
static void fwrite16le(ALushort val, FILE *f)
{
ALubyte data[2] = { val&0xff, (val>>8)&0xff };