diff --git a/libobs/util/platform.c b/libobs/util/platform.c index e6d82a7d7..2c402ba70 100644 --- a/libobs/util/platform.c +++ b/libobs/util/platform.c @@ -450,10 +450,6 @@ static inline void from_locale(char *buffer) *pos = '.'; } -#ifdef _WIN32 -#define snprintf _snprintf -#endif - double os_strtod(const char *str) { char buf[64]; diff --git a/libobs/util/platform.h b/libobs/util/platform.h index 634189f63..577df1d8a 100644 --- a/libobs/util/platform.h +++ b/libobs/util/platform.h @@ -137,6 +137,9 @@ EXPORT int os_mkdir(const char *path); #ifdef _MSC_VER #define strtoll _strtoi64 +#if _MSC_VER < 1900 +#define snprintf _snprintf +#endif #endif #ifdef __cplusplus