<div dir="ltr">Hi List,<div><br></div><div>We use GDAL with MapWinGIS, a C++ ActiveX control.<br>We use the binaries, libs and header files from GisInternals.com</div><div><br></div><div>We're currently in the process of getting rid of the last compiler warnings.</div><div>One of them is <font face="courier new, monospace">'HOST_FILLORDER': macro redefinition</font><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="font-size:1em;font-variant-numeric:normal;font-variant-east-asian:normal;letter-spacing:0em;line-height:1.714;margin:10px 0px 0px;padding:0px;white-space:pre-wrap"><font color="#000000">Our Map_Core.cpp includes tiff.h, which includes tiffconf.h, which defines HOST_FILLORDER as</font></p><div class="gmail-code-block" style="clear:both;display:grid;font-size:14px;font-variant-numeric:normal;font-variant-east-asian:normal;margin:0px;max-width:100%;padding:0px;white-space:pre-wrap"><span style="background:none 0% 0%/auto repeat scroll padding-box border-box rgb(244,245,247);border-radius:3px;display:flex;font-size:12px;line-height:1.6666;overflow-x:auto;white-space:pre"><code style="background-color:rgb(235,236,240);font-size:14px;line-height:1.4285;padding:8px;text-align:right"><span style="color:rgb(0,0,0);background-color:rgb(244,245,247);font-size:12px;font-family:Arial,Helvetica,sans-serif">#define HOST_FILLORDER FILLORDER_MSB2LSB</span></code></span></div><p style="font-size:1em;font-variant-numeric:normal;font-variant-east-asian:normal;letter-spacing:0em;line-height:1.714;margin:10px 0px 0px;padding:0px;white-space:pre-wrap"><font color="#000000">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</font></p><div class="gmail-code-block" style="clear:both;display:grid;font-size:14px;font-variant-numeric:normal;font-variant-east-asian:normal;margin:0px;max-width:100%;padding:0px;white-space:pre-wrap"><span style="background:none 0% 0%/auto repeat scroll padding-box border-box rgb(244,245,247);border-radius:3px;display:flex;font-size:12px;line-height:1.6666;overflow-x:auto;white-space:pre"><code style="background-color:rgb(235,236,240);font-size:14px;line-height:1.4285;padding:8px;text-align:right"><span style="color:rgb(0,0,0);background-color:rgb(244,245,247);font-size:12px;font-family:Arial,Helvetica,sans-serif">#define HOST_FILLORDER FILLORDER_LSB2MSB</span></code></span></div><p style="font-size:1em;font-variant-numeric:normal;font-variant-east-asian:normal;letter-spacing:0em;line-height:1.714;margin:10px 0px 0px;padding:0px;white-space:pre-wrap"><font color="#000000">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?</font></p><p style="font-size:1em;font-variant-numeric:normal;font-variant-east-asian:normal;letter-spacing:0em;line-height:1.714;margin:10px 0px 0px;padding:0px;white-space:pre-wrap"><font color="#000000">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?</font></p><p style="font-size:1em;font-variant-numeric:normal;font-variant-east-asian:normal;letter-spacing:0em;line-height:1.714;margin:10px 0px 0px;padding:0px;white-space:pre-wrap"><font color="#000000">Should we not include both tiff.h and geotiff.h in the same file?<br></font></p><p style="font-size:1em;font-variant-numeric:normal;font-variant-east-asian:normal;letter-spacing:0em;line-height:1.714;margin:10px 0px 0px;padding:0px;white-space:pre-wrap"><font color="#000000">How are other developers dealing with this?</font></p>
</div></div></div></div></div></div></div></div>