From: Jasin Colegrove Date: Wed, 1 Jun 2016 14:24:30 +0000 (-0400) Subject: MSVC 12 still requires snprintf to be defined X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2ab79c82eb1afeaba114bf8a8f0efefb24d7654c;p=simgear.git MSVC 12 still requires snprintf to be defined --- diff --git a/simgear/compiler.h b/simgear/compiler.h index ebaa7eb4..43e1c07d 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -64,9 +64,11 @@ # define bcopy(from, to, n) memcpy(to, from, n) # if _MSC_VER >= 1200 // msvc++ 6.0 up to MSVC2013 +# if _MSC_VER < 1900 +# define snprintf _snprintf +# endif # if _MSC_VER < 1800 # define isnan _isnan -# define snprintf _snprintf # endif # if _MSC_VER < 1500 # define vsnprintf _vsnprintf