OSGeo / PROJ-JNI

Java Native Interface for PROJ
https://osgeo.github.io/PROJ-JNI/
MIT License
23 stars 15 forks source link

Compiling with Visual C++ 2015: strcasecmp is missing #28

Closed FilipGh closed 4 years ago

FilipGh commented 4 years ago

I tried to compile the C++ part under Windows, with Visual C++ 2015 compiler. I followed the "cmake steps" as suggested in src/main/cpp/CMakelists.txt. One symbol is not defined in bindings.cpp with Visual Studio compilers : strcasecmp.

I added a few lines (specific for VS compiler) to define it: #define strcasecmp _stricmp

Attached is "git --diff" patch

strcasecmp.zip

desruisseaux commented 4 years ago

Patch has been integrated in master branch (thanks!). A 1.0-RC4 release candidate has been published.