python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libjpeg-turbo / mingw-boolean.patch
blob9b9483d639877ebecdaf6eb9f8853d0b69ef14f3
1 Ported to updated libjpeg-turbo from
2 https://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 */
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 */