<div dir="ltr"><div><br><br>On Tue, Nov 14, 2017 at 3:13 PM, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br>><br>> > --><br>><br>> > Index: port/cpl_port.h<br>><br>> > ===================================================================<br>><br>> > --- port/cpl_port.h (revision 40701)<br>><br>> > +++ port/cpl_port.h (working copy)<br>><br>> > @@ -219,7 +219,7 @@<br>><br>> > /* 64bit support */<br>><br>> > /* -------------------------------------------------------------------- */<br>><br>> ><br>><br>> > -#if defined(WIN32) && defined(_MSC_VER)<br>><br>> > +#if defined(WIN32) && (defined(_MSC_VER) || defined(__MINGW32__))<br>><br>> ><br>><br>> > #define VSI_LARGE_API_SUPPORTED<br>><br>> > typedef __int64 GIntBig;<br>><br>> > <--<br>><br>> ><br>><br>> > to account for different compile environments on Windows that have __int64<br>><br>> Didn't know that mingw had __int64 as wel.<br>><br></div>According to the documentation, yes. I tested, and __int64 is indeed available with MinGW.<br><div><div>><br>> Could you submit that as a pull request against <a href="https://github.com/OSGeo/gdal">https://github.com/OSGeo/gdal</a> so we can check that this doesn't break our 2 mingw targets at<br>> <a href="https://travis-ci.org/OSGeo/gdal">https://travis-ci.org/OSGeo/gdal</a> ?<br></div><div><br></div><div>Done:</div><div><a href="https://github.com/OSGeo/gdal/pull/262">https://github.com/OSGeo/gdal/pull/262</a><br></div><div><br></div><div>Regarding integer types with MSC: why is HAVE_LONG_LONG not defined in cpl_config.h for WIN32? There is a long long in WIN32 (equivalent to __int64).</div><div><br></div><div>Markus M</div><div><br> </div></div></div>