aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-05-19 14:10:08 +0200
committerEven Rouault <even.rouault@spatialys.com>2018-05-19 14:10:08 +0200
commit905b15d4682876e306f0eb97014baa09eb1a3402 (patch)
tree551661aab04da890fdb3a2ac07915ffe045b759f /src
parent39581f346d5c4d86afb675d0f7faca6677ba586f (diff)
downloadPROJ-905b15d4682876e306f0eb97014baa09eb1a3402.tar.gz
PROJ-905b15d4682876e306f0eb97014baa09eb1a3402.zip
Undef isnan if already defined before redefining it (typically with MSVC)
Diffstat (limited to 'src')
-rw-r--r--src/proj_math.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/proj_math.h b/src/proj_math.h
index 1bb0a94f..84c9b0da 100644
--- a/src/proj_math.h
+++ b/src/proj_math.h
@@ -44,6 +44,9 @@ int pj_isnan(double x);
#define hypot pj_hypot
#define log1p pj_log1p
#define asinh pj_asinh
+#ifdef isnan
+#undef isnan
+#endif
#define isnan pj_isnan
#endif /* !(defined(HAVE_C99_MATH) && HAVE_C99_MATH) */