lol
1Ported to updated libjpeg-turbo from
2https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-libjpeg-turbo/jpeg-typedefs.patch
3--- a/jmorecfg.h 2012-02-10 06:47:55 +0300
4+++ b/jmorecfg.h 2012-05-03 10:29:13 +0400
5@@ -224,7 +224,13 @@
6 * Defining HAVE_BOOLEAN before including jpeglib.h should make it work.
7 */
8
9-#ifndef HAVE_BOOLEAN
10+#if defined(_WIN32) && !defined(HAVE_BOOLEAN)
11+#ifndef __RPCNDR_H__
12+typedef unsigned char boolean;
13+#endif
14+#define HAVE_BOOLEAN
15+#endif
16+#if !defined(HAVE_BOOLEAN) && !defined(__RPCNDR_H__)
17 typedef int boolean;
18 #endif
19 #ifndef FALSE /* in case these macros already exist */