]> git.mxchange.org Git - simgear.git/commitdiff
MSVC 12 still requires snprintf to be defined
authorJasin Colegrove <jasin@coleburt.com>
Wed, 1 Jun 2016 14:24:30 +0000 (10:24 -0400)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
simgear/compiler.h

index ebaa7eb49c0104086a4e1e112f6120af56761f80..43e1c07d675273b27fd4780af3bd176a9476f89a 100644 (file)
 #  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