Explorar o código

don't redefine snprintf for newer msvc

Dan Korostelev %!s(int64=4) %!d(string=hai) anos
pai
achega
898f2429b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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__)