From 555faaef0f1b3ec5a311b913ea3e7087bc515e67 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 26 Jun 2015 12:43:26 +0300 Subject: [PATCH] patch for compilation on Linux --- src/shapelib/shapefil.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shapelib/shapefil.h b/src/shapelib/shapefil.h index 2a9a96a0..15e6c3c8 100644 --- a/src/shapelib/shapefil.h +++ b/src/shapelib/shapefil.h @@ -200,6 +200,7 @@ extern "C" { #define SHAPELIB_DLLEXPORT 1 #endif +#ifdef WIN32 #ifdef SHAPELIB_DLLEXPORT # define SHPAPI_CALL __declspec(dllexport) # define SHPAPI_CALL1(x) __declspec(dllexport) x @@ -207,6 +208,7 @@ extern "C" { # define SHPAPI_CALL __declspec(dllimport) # define SHPAPI_CALL1(x) __declspec(dllimport) x #endif +#endif #ifndef SHPAPI_CALL # if defined(USE_GCC_VISIBILITY_FLAG) -- 2.39.2