summaryrefslogtreecommitdiffstats
path: root/src/jpeg-win32.patch
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-04-21 11:42:44 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-04-21 11:42:44 (GMT)
commit99edab778a7b0fdfb3ecb28a288ead6fe397c500 (patch)
tree96d9aef5d59e828187567a7bb351e5eb06a4c4d1 /src/jpeg-win32.patch
parentb9ee58881aafbc015d27ecbaf0a1fc794737ec3d (diff)
downloadmxe-99edab778a7b0fdfb3ecb28a288ead6fe397c500.zip
mxe-99edab778a7b0fdfb3ecb28a288ead6fe397c500.tar.gz
mxe-99edab778a7b0fdfb3ecb28a288ead6fe397c500.tar.bz2
cleanup of the "boolean" and "INT32" fixes for package jpeg
Diffstat (limited to 'src/jpeg-win32.patch')
-rw-r--r--src/jpeg-win32.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/jpeg-win32.patch b/src/jpeg-win32.patch
new file mode 100644
index 0000000..6224ccd
--- /dev/null
+++ b/src/jpeg-win32.patch
@@ -0,0 +1,35 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+diff -r 13edd7b348d4 jmorecfg.h
+--- a/jmorecfg.h Wed Apr 21 10:15:34 2010 +0200
++++ b/jmorecfg.h Wed Apr 21 11:36:07 2010 +0200
+@@ -10,6 +10,16 @@
+ * JPEG software for special applications or support machine-dependent
+ * optimizations. Most users will not need to touch this file.
+ */
++
++
++/*
++ * Load standard definitions on Windows systems to ensure that these
++ * are defined when _building_ as well as _using_ the library.
++ */
++
++#ifdef _WIN32
++#include <windows.h>
++#endif
+
+
+ /*
+@@ -233,7 +243,11 @@
+ */
+
+ #ifndef HAVE_BOOLEAN
++#ifndef _RPCNDR_H_ /* Microsoft defines it in rpcndr.h */
++#ifndef _RPCNDR_H /* MinGW is slightly different */
+ typedef int boolean;
++#endif
++#endif
+ #endif
+ #ifndef FALSE /* in case these macros already exist */
+ #define FALSE 0 /* values of boolean */