From 272b8073833b1b1867caf71759924617592e1b2f Mon Sep 17 00:00:00 2001 From: derselbst Date: Fri, 29 Dec 2017 17:51:57 +0100 Subject: [PATCH] fallback to glibs C99 compliant *snprintf() functions rather than microsofts non compliant extension functions --- src/utils/fluidsynth_priv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/fluidsynth_priv.h b/src/utils/fluidsynth_priv.h index c8f95903..b0e7b746 100644 --- a/src/utils/fluidsynth_priv.h +++ b/src/utils/fluidsynth_priv.h @@ -256,13 +256,13 @@ do { strncpy(_dst,_src,_n); \ #define FLUID_FPRINTF fprintf #if (defined(WIN32) && _MSC_VER < 1900) || defined(MINGW32) - #define FLUID_SNPRINTF _snprintf + #define FLUID_SNPRINTF g_snprintf #else #define FLUID_SNPRINTF snprintf #endif #if (defined(WIN32) && _MSC_VER < 1500) || defined(MINGW32) - #define FLUID_VSNPRINTF _vsnprintf + #define FLUID_VSNPRINTF g_vsnprintf #else #define FLUID_VSNPRINTF vsnprintf #endif