aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2017-11-07 20:45:43 +0100
committerKristian Evers <kristianevers@gmail.com>2017-11-10 15:06:34 +0100
commite09999127da8dea56d9af52bc346cf7cc6613547 (patch)
treedbe7788b47ae1521c5417eeca178997729e6006d /src
parentbf673102bc86b241976df0d90f8ca1b40880b500 (diff)
downloadPROJ-e09999127da8dea56d9af52bc346cf7cc6613547.tar.gz
PROJ-e09999127da8dea56d9af52bc346cf7cc6613547.zip
Use HAVE_C99_MATH instead of _WIN32_ and __ANSI__
HAVE_C99_MATH was recently added to the build system as a safer way to determine if non-ansi math functions are available on the current system. Previously different combinations of tests including _WIN32_ and __ANSI__ have been in use, but cases where that strategy has failed is known. Hence this change to a hopefully more robust check of math function availability.
Diffstat (limited to 'src')
-rw-r--r--src/projects.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/projects.h b/src/projects.h
index fad5c7bc..9ff24f71 100644
--- a/src/projects.h
+++ b/src/projects.h
@@ -84,7 +84,7 @@ extern "C" {
#endif
/* prototype hypot for systems where absent */
-#if !defined(_WIN32) || !defined(__ANSI__)
+#if !(defined(HAVE_C99_MATH) && HAVE_C99_MATH)
extern double hypot(double, double);
#endif