mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-06-02 18:11:19 +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
|
#define FLUID_FPRINTF fprintf
|
||||||
|
|
||||||
#if (defined(WIN32) && _MSC_VER < 1900) || defined(MINGW32)
|
#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
|
#define FLUID_SNPRINTF g_snprintf
|
||||||
#else
|
#else
|
||||||
#define FLUID_SNPRINTF snprintf
|
#define FLUID_SNPRINTF snprintf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue