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
This commit is contained in:
@@ -29,6 +29,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "turbojpeg.h"
|
#include "turbojpeg.h"
|
||||||
|
#ifdef WIN32
|
||||||
|
#include "tjutil.h"
|
||||||
|
#endif
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#include "java/org_libjpegturbo_turbojpeg_TJCompressor.h"
|
#include "java/org_libjpegturbo_turbojpeg_TJCompressor.h"
|
||||||
#include "java/org_libjpegturbo_turbojpeg_TJDecompressor.h"
|
#include "java/org_libjpegturbo_turbojpeg_TJDecompressor.h"
|
||||||
@@ -41,11 +44,6 @@
|
|||||||
goto bailout; \
|
goto bailout; \
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
#define snprintf(str, n, format, ...) \
|
|
||||||
_snprintf_s(str, n, _TRUNCATE, format, __VA_ARGS__)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define bailif0(f) {if(!(f)) { \
|
#define bailif0(f) {if(!(f)) { \
|
||||||
char temps[80]; \
|
char temps[80]; \
|
||||||
snprintf(temps, 80, "Unexpected NULL condition in line %d", __LINE__); \
|
snprintf(temps, 80, "Unexpected NULL condition in line %d", __LINE__); \
|
||||||
|
|||||||
Reference in New Issue
Block a user