Skip to content

Instantly share code, notes, and snippets.

@mattintosh4
Created July 9, 2013 21:59
Show Gist options
  • Save mattintosh4/5961669 to your computer and use it in GitHub Desktop.
Save mattintosh4/5961669 to your computer and use it in GitHub Desktop.
--- 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