summaryrefslogtreecommitdiffstats
path: root/src/jpeg-1-win32.patch
blob: 8ef1d995e3d6942695575a7abb7b445c2a09a32d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
This file is part of mingw-cross-env.
See doc/index.html for further information.

diff -r fcac1fe04220 jconfig.cfg
--- a/jconfig.cfg	Sun Apr 25 11:28:20 2010 +0200
+++ b/jconfig.cfg	Mon Apr 26 11:32:32 2010 +0200
@@ -16,6 +16,14 @@
 #undef NEED_SHORT_EXTERNAL_NAMES
 /* Define this if you get warnings about undefined structures. */
 #undef INCOMPLETE_TYPES_BROKEN
+
+/* Define "boolean" as unsigned char, not int, on Windows systems. */
+#ifdef _WIN32
+#ifndef __RPCNDR_H__		/* don't conflict if rpcndr.h already read */
+typedef unsigned char boolean;
+#endif
+#define HAVE_BOOLEAN		/* prevent jmorecfg.h from redefining it */
+#endif
 
 #ifdef JPEG_INTERNALS
 
diff -r fcac1fe04220 jconfig.txt
--- a/jconfig.txt	Sun Apr 25 11:28:20 2010 +0200
+++ b/jconfig.txt	Mon Apr 26 11:32:32 2010 +0200
@@ -91,6 +91,15 @@
  */
 #undef INCOMPLETE_TYPES_BROKEN
 
+/* Define "boolean" as unsigned char, not int, on Windows systems.
+ */
+#ifdef _WIN32
+#ifndef __RPCNDR_H__		/* don't conflict if rpcndr.h already read */
+typedef unsigned char boolean;
+#endif
+#define HAVE_BOOLEAN		/* prevent jmorecfg.h from redefining it */
+#endif
+
 
 /*
  * The following options affect code selection within the JPEG library,