aboutsummaryrefslogtreecommitdiff
path: root/src/proj_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/proj_math.h')
-rw-r--r--src/proj_math.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/proj_math.h b/src/proj_math.h
index ca3ab401..f6dd7e09 100644
--- a/src/proj_math.h
+++ b/src/proj_math.h
@@ -58,10 +58,13 @@ int pj_isnan(double x);
#define round pj_round
#define lround pj_lround
-#ifndef isnan
-#define isnan pj_isnan
+
+#ifdef isnan
+#undef isnan
#endif
+#define isnan pj_isnan
+
#endif /* !(defined(HAVE_C99_MATH) && HAVE_C99_MATH) */
#ifdef __cplusplus