Просмотр исходного кода

don't redefine snprintf for newer msvc

Dan Korostelev 4 лет назад
Родитель
Сommit
898f2429b5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/turbojpeg/tjutil.h

+ 1 - 1
include/turbojpeg/tjutil.h

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