[gdal-dev] 'HOST_FILLORDER': macro redefinition

Paul Meems bontepaarden at gmail.com
Mon Jul 15 02:17:56 PDT 2019


Hi List,

We use GDAL with MapWinGIS, a C++ ActiveX control.
We use the binaries, libs and header files from GisInternals.com

We're currently in the process of getting rid of the last compiler warnings.
One of them is 'HOST_FILLORDER': macro redefinition

Our Map_Core.cpp includes tiff.h, which includes tiffconf.h, which defines
HOST_FILLORDER as
#define HOST_FILLORDER FILLORDER_MSB2LSB

Map_Core.cpp then also includes geotiff.h, which includes geo_config.h,
which includes cpl_config.h, which unfortunately redefines HOST_FILLORDER
in the opposite order
#define HOST_FILLORDER FILLORDER_LSB2MSB

If it were redefining to the same value, that would be one thing, but since
it is redefining to another value, it makes you wonder 1) why is it coming
in differently, and 2) which value should it be?

A simple redefinition, with the same value, wouldn’t bother us as much and
would be easier to deal with. But with this, we will have to figure out
which value it should be, and why do the includes we’re using result in
conflicting definitions?

Should we not include both tiff.h and geotiff.h in the same file?

How are other developers dealing with this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190715/729ef384/attachment.html>


More information about the gdal-dev mailing list