fallback to glibs C99 compliant *snprintf() functions

rather than microsofts non compliant extension functions
This commit is contained in:
derselbst 2017-12-29 17:51:57 +01:00
parent acb8da48f4
commit 272b807383

View file

@ -256,13 +256,13 @@ do { strncpy(_dst,_src,_n); \
#define FLUID_FPRINTF fprintf #define FLUID_FPRINTF fprintf
#if (defined(WIN32) && _MSC_VER < 1900) || defined(MINGW32) #if (defined(WIN32) && _MSC_VER < 1900) || defined(MINGW32)
#define FLUID_SNPRINTF _snprintf #define FLUID_SNPRINTF g_snprintf
#else #else
#define FLUID_SNPRINTF snprintf #define FLUID_SNPRINTF snprintf
#endif #endif
#if (defined(WIN32) && _MSC_VER < 1500) || defined(MINGW32) #if (defined(WIN32) && _MSC_VER < 1500) || defined(MINGW32)
#define FLUID_VSNPRINTF _vsnprintf #define FLUID_VSNPRINTF g_vsnprintf
#else #else
#define FLUID_VSNPRINTF vsnprintf #define FLUID_VSNPRINTF vsnprintf
#endif #endif