libobs: Define snprintf only for Visual Studios prior VS2015
This change is purely cosmetic one. _snprintf is still defined in 2015, but Microsoft may change this in the future.master
parent
1e241bd24f
commit
2ab4c430e0
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue