瀏覽代碼

don't redefine snprintf for newer msvc

Dan Korostelev 4 年之前
父節點
當前提交
898f2429b5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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__)