diff options
Diffstat (limited to 'src/proj_math.h')
| -rw-r--r-- | src/proj_math.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/proj_math.h b/src/proj_math.h index f6dd7e09..5aea494d 100644 --- a/src/proj_math.h +++ b/src/proj_math.h @@ -37,6 +37,22 @@ extern "C" { #if !(defined(HAVE_C99_MATH) && HAVE_C99_MATH) +#ifndef PROJ_DLL +#ifdef PROJ_MSVC_DLL_EXPORT +#define PROJ_DLL __declspec(dllexport) +#elif defined(PROJ_MSVC_DLL_IMPORT) +#define PROJ_DLL __declspec(dllimport) +#elif defined(__GNUC__) +#define PROJ_DLL __attribute__ ((visibility("default"))) +#else +#define PROJ_DLL +#endif +#endif + +#ifdef PROJ_RENAME_SYMBOLS +#include "proj_symbol_rename.h" +#endif + #ifndef NAN #ifdef _WIN32 #define NAN sqrt(-1.0) @@ -50,7 +66,7 @@ double pj_log1p(double x); double pj_asinh(double x); double pj_round(double x); long pj_lround(double x); -int pj_isnan(double x); +int PROJ_DLL pj_isnan(double x); #define hypot pj_hypot #define log1p pj_log1p |
