Created
July 9, 2013 21:59
-
-
Save mattintosh4/5961669 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- jmorecfg.h.orig 2013-07-10 06:57:41.000000000 +0900 | |
+++ jmorecfg.h 2013-07-10 06:58:30.000000000 +0900 | |
@@ -252,17 +252,16 @@ | |
* Defining HAVE_BOOLEAN before including jpeglib.h should make it work. | |
*/ | |
-#ifdef HAVE_BOOLEAN | |
+#ifndef HAVE_BOOLEAN | |
+typedef int boolean; | |
+#endif | |
+ | |
#ifndef FALSE /* in case these macros already exist */ | |
#define FALSE 0 /* values of boolean */ | |
#endif | |
#ifndef TRUE | |
#define TRUE 1 | |
#endif | |
-#else | |
-typedef enum { FALSE = 0, TRUE = 1 } boolean; | |
-#endif | |
- | |
/* | |
* The remaining options affect code selection within the JPEG library, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment