From 2ab79c82eb1afeaba114bf8a8f0efefb24d7654c Mon Sep 17 00:00:00 2001 From: Jasin Colegrove Date: Wed, 1 Jun 2016 10:24:30 -0400 Subject: [PATCH] MSVC 12 still requires snprintf to be defined --- simgear/compiler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5