Browse Source

don't redefine snprintf for newer msvc

Dan Korostelev 4 years ago
parent
commit
898f2429b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/turbojpeg/tjutil.h

+ 1 - 1
include/turbojpeg/tjutil.h

@@ -27,7 +27,7 @@
  */
 
 #ifdef _WIN32
-	#ifndef __MINGW32__
+	#if defined(_MSC_VER) && _MSC_VER < 1900
 		#include <stdio.h>
 		#define snprintf(str, n, format, ...)  \
 			_snprintf_s(str, n, _TRUNCATE, format, __VA_ARGS__)