#include <stdlib.h>
#include <string.h>
#include "turbojpeg.h"
+#ifdef WIN32
+#include "tjutil.h"
+#endif
#include <jni.h>
#include "java/org_libjpegturbo_turbojpeg_TJCompressor.h"
#include "java/org_libjpegturbo_turbojpeg_TJDecompressor.h"
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__); \