libjpeg problems... November 29, 2008 08:09AM | Registered: 16 years ago Posts: 78 |
/* * On a few systems, type boolean and/or its values FALSE, TRUE may appear * in standard header files. Or you may have conflicts with application- * specific header files that you want to include together with these files. * Defining HAVE_BOOLEAN before including jpeglib.h should make it work. */ #ifndef HAVE_BOOLEAN typedef int boolean; /* THIS IS LINE 227 HERE */ #endif #ifndef FALSE /* in case these macros already exist */ #define FALSE 0 /* values of boolean */ #endif #ifndef TRUE #define TRUE 1 #endifgctypes line 22:
typedef unsigned char u8;How is line 227 of jmorecfg.h and line 22 of gctypes conflicting?
Re: libjpeg problems... November 29, 2008 04:21PM | Registered: 15 years ago Posts: 73 |
Re: libjpeg problems... November 30, 2008 01:03AM | Registered: 16 years ago Posts: 78 |
Re: libjpeg problems... November 30, 2008 03:18AM | Registered: 15 years ago Posts: 73 |
#include <gctypes.h> #undef boolean #include <jpeglib.h> #define boolean u8
Re: libjpeg problems... November 30, 2008 04:25AM | Registered: 16 years ago Posts: 78 |
Quote
...since you're changing the size of boolean from a 32-bit type in your jpeg header...
Re: libjpeg problems... November 30, 2008 05:02AM | Registered: 15 years ago Posts: 73 |
Re: libjpeg problems... November 30, 2008 03:00PM | Registered: 16 years ago Posts: 51 |
#undef boolean