Avoid issues with mysql defining preprocessor macros min and max. These macros conflict with recent gcc stl implementations. Patch suggested by Patrick Williams References: https://bugs.gentoo.org/show_bug.cgi?id=277654 2009-07-30 Martin von Gagern Index: gdal-1.6.0/ogr/ogrsf_frmts/mysql/ogr_mysql.h =================================================================== --- gdal-1.6.0.orig/ogr/ogrsf_frmts/mysql/ogr_mysql.h +++ gdal-1.6.0/ogr/ogrsf_frmts/mysql/ogr_mysql.h @@ -31,6 +31,8 @@ #ifndef _OGR_MYSQL_H_INCLUDED #define _OGR_MYSQL_H_INCLUDED +#include "ogrsf_frmts.h" + #include #include @@ -38,8 +40,6 @@ #undef bool #endif -#include "ogrsf_frmts.h" - /************************************************************************/ /* OGRMySQLLayer */ /************************************************************************/