diff options
| author | Alexander Karatarakis <alex@karatarakis.com> | 2017-10-03 12:54:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-03 12:54:21 -0700 |
| commit | 74e26284cca0bb3c4207a5918d27d01a2f5109fd (patch) | |
| tree | b29c16ff43e2ba95119bac48ae4764c70d08c2f1 /ports/libspatialite/fix-sources.patch | |
| parent | 051e6d96e69535d948cfabe7aa66f43f1670d90a (diff) | |
| parent | 587186430dbb8ef5b4d81bd509cfca668f667684 (diff) | |
| download | vcpkg-74e26284cca0bb3c4207a5918d27d01a2f5109fd.tar.gz vcpkg-74e26284cca0bb3c4207a5918d27d01a2f5109fd.zip | |
Merge pull request #1917 from alex85k/libspatialite
[libspatialite] initial port
Diffstat (limited to 'ports/libspatialite/fix-sources.patch')
| -rw-r--r-- | ports/libspatialite/fix-sources.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ports/libspatialite/fix-sources.patch b/ports/libspatialite/fix-sources.patch new file mode 100644 index 000000000..63def0d3c --- /dev/null +++ b/ports/libspatialite/fix-sources.patch @@ -0,0 +1,32 @@ +diff --git a/config-msvc.h b/config-msvc.h +index 9c7f477..a812546 100644 +--- a/config-msvc.h ++++ b/config-msvc.h +@@ -143,7 +143,7 @@ + #define HAVE_SYS_TYPES_H 1 + + /* Define to 1 if you have the <unistd.h> header file. */ +-#define HAVE_UNISTD_H 1 ++#undef HAVE_UNISTD_H + + /* Define to 1 if you have the <zlib.h> header file. */ + #define HAVE_ZLIB_H 1 +diff --git a/src/gaiageo/gg_extras.c b/src/gaiageo/gg_extras.c +index ff3dd7c..49ec986 100644 +--- a/src/gaiageo/gg_extras.c ++++ b/src/gaiageo/gg_extras.c +@@ -59,14 +59,6 @@ the terms of any one of the MPL, the GPL or the LGPL. + #include <spatialite/sqlite.h> + #include <spatialite/gaiageo.h> + +-#if defined(_WIN32) && !defined(__MINGW32__) +-static double +-rint (double x) +-{ +- return floor (x + 0.5); +-} +-#endif +- + static void + auxGridSnapPoint (int dimension_model, gaiaPointPtr pt, gaiaGeomCollPtr result, + double origin_x, double origin_y, double origin_z, |
