diff options
-rw-r--r-- | examples/alrecord.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/alrecord.c b/examples/alrecord.c index c21ba30b..43b26d35 100644 --- a/examples/alrecord.c +++ b/examples/alrecord.c @@ -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 }; |