1 Copy definitions of "boolean", "INT16", "INT32" from win/jconfig.h.in
3 ... into jconfig.h.in, which is the one we use via configure.
5 diff -ru jpeg-turbo.orig/simd/Makefile.in jpeg-turbo/simd/Makefile.in
6 --- jpeg-turbo.orig/simd/Makefile.in 2015-09-21 20:48:45.000000000 +0200
7 +++ jpeg-turbo/simd/Makefile.in 2015-11-22 10:52:46.975285184 +0100
10 $(AM_V_GEN) $(LIBTOOL) $(AM_V_lt) --mode=compile --tag NASM $(srcdir)/nasm_lt.sh $(AM_V_lt) $(NASM) $(NAFLAGS) -I$(srcdir) -I. $< -o $@
12 -jsimdcfg.inc: $(srcdir)/jsimdcfg.inc.h ../jpeglib.h ../jconfig.h ../jmorecfg.h
13 - $(AM_V_GEN) $(CPP) -I$(top_builddir) -I$(top_builddir)/simd $(srcdir)/jsimdcfg.inc.h | $(EGREP) "^[\;%]|^\ %" | sed 's%_cpp_protection_%%' | sed 's@% define@%define@g' > $@
14 +jsimdcfg.inc: $(top_srcdir)/win/jsimdcfg.inc
17 # Tell versions [3.59,3.63) of GNU make to not export all variables.
18 # Otherwise a system limit (for SysV at least) may be exceeded.
19 diff -ru jpeg-turbo.orig/configure jpeg-turbo/configure
20 --- jpeg-turbo.orig/configure 2015-11-22 15:57:23.702656000 +0100
21 +++ jpeg-turbo/configure 2015-11-22 15:59:37.084285000 +0100
22 @@ -13931,7 +13931,7 @@
26 -$as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
27 +$as_echo "#undef NEED_BSD_STRINGS" >>confdefs.h
31 --- jpeg-turbo/jconfig.h.in.orig 2016-11-02 22:43:55.012600000 +0100
32 +++ jpeg-turbo/jconfig.h.in 2016-11-02 22:45:01.905400000 +0100
35 /* Define to `unsigned int' if <sys/types.h> does not define. */
40 +/* Define "boolean" as unsigned char, not int, per Windows custom */
41 +#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
42 +typedef unsigned char boolean;
44 +#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
46 +/* Define "INT32" as int, not long, per Windows custom */
47 +#if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */
49 +typedef signed int INT32;
51 +#define XMD_H /* prevent jmorecfg.h from redefining it */
53 +#endif /* _MSC_VER */