aboutsummaryrefslogtreecommitdiff
path: root/src/geodesic.c
diff options
context:
space:
mode:
authorCharles Karney <charles.karney@sri.com>2019-09-19 09:25:09 -0400
committerCharles Karney <charles.karney@sri.com>2019-09-19 09:25:09 -0400
commit1c2f375033afb0a4eb57c978222db2feeb148f43 (patch)
tree5f1644142a32d3fc47a7a3592860dbe48dea4638 /src/geodesic.c
parent8948068deaa8b1b9cf14e7e509d06abc3a0b8dcf (diff)
downloadPROJ-1c2f375033afb0a4eb57c978222db2feeb148f43.tar.gz
PROJ-1c2f375033afb0a4eb57c978222db2feeb148f43.zip
Require C99 compiler see #1621
cmake and autoconf now stipulate C99 change c89 to c99 in travis jobs remove HAVE_C99_MATH checks (unrelated) relax Visual Studio compatibility check in cmake/project-config-version.cmake.in (VS 2019 can use a VS 2015 library but not vice versa).
Diffstat (limited to 'src/geodesic.c')
-rw-r--r--src/geodesic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/geodesic.c b/src/geodesic.c
index 49c9823e..dcdd4d77 100644
--- a/src/geodesic.c
+++ b/src/geodesic.c
@@ -27,8 +27,13 @@
#include <math.h>
#if !defined(HAVE_C99_MATH)
+#if defined(PROJ_LIB)
+/* PROJ requires C99 so HAVE_C99_MATH is implicit */
+#define HAVE_C99_MATH 1
+#else
#define HAVE_C99_MATH 0
#endif
+#endif
#if !defined(__cplusplus)
#define nullptr 0