mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-13 11:21:06 +00:00
elaborate on _[v]snprintf()
This commit is contained in:
parent
a4b7bf0c6f
commit
81ebb229ae
1 changed files with 4 additions and 0 deletions
|
@ -256,6 +256,10 @@ do { strncpy(_dst,_src,_n); \
|
|||
#define FLUID_FPRINTF fprintf
|
||||
|
||||
#if (defined(WIN32) && _MSC_VER < 1900) || defined(MINGW32)
|
||||
/* need to make sure we use a C99 compliant implementation of (v)snprintf(),
|
||||
* i.e. not microsofts non compliant extension _snprintf() as it doesnt
|
||||
* reliably null-terminates the buffer
|
||||
*/
|
||||
#define FLUID_SNPRINTF g_snprintf
|
||||
#else
|
||||
#define FLUID_SNPRINTF snprintf
|
||||
|
|
Loading…
Reference in a new issue