[gdal-dev] Patch to improve libjpeg compatibility on gdal 1.11

David Weiß David.Weiss at ptvgroup.com
Wed Feb 18 02:04:32 PST 2015


Hey Even,

> Where I'm confused now is that I don't need any patch in the 1.11 branch to
> compile against 9a...
> 
> The releavant extract of the output of g++ -E on libjpeg_io.cpp is {{{ # 309
> "/home/even/install-jpeg-9a/include/jmorecfg.h"
> typedef int boolean;
> }}}
> 
> so it doesn't use at all the "typedef enum { FALSE = 0, TRUE = 1 } boolean;"
> thing.

Maybe GCC doesn't because of line 307:
	#if defined FALSE || defined TRUE || defined QGLOBAL_H

But MSVC fails to have one of these defined and thus uses the else-case:
	#else
	typedef enum { FALSE = 0, TRUE = 1 } boolean;

Should have mentioned that the problem occurred building with MS VS 2010.

Blessings,

David


More information about the gdal-dev mailing list