From bc2e66cb433c04514f61d9b58be23e667bd8f8d8 Mon Sep 17 00:00:00 2001 From: DRC Date: Tue, 2 Oct 2012 06:47:37 +0000 Subject: [PATCH] Fix MinGW build and remove duplication of effort git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@864 632fc199-4ca6-4c93-a231-07263d6284db --- turbojpeg-jni.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/turbojpeg-jni.c b/turbojpeg-jni.c index d570ee9..96a4a68 100644 --- a/turbojpeg-jni.c +++ b/turbojpeg-jni.c @@ -29,6 +29,9 @@ #include #include #include "turbojpeg.h" +#ifdef WIN32 +#include "tjutil.h" +#endif #include #include "java/org_libjpegturbo_turbojpeg_TJCompressor.h" #include "java/org_libjpegturbo_turbojpeg_TJDecompressor.h" @@ -41,11 +44,6 @@ goto bailout; \ } -#ifdef WIN32 -#define snprintf(str, n, format, ...) \ - _snprintf_s(str, n, _TRUNCATE, format, __VA_ARGS__) -#endif - #define bailif0(f) {if(!(f)) { \ char temps[80]; \ snprintf(temps, 80, "Unexpected NULL condition in line %d", __LINE__); \ -- 2.40.0