From e09999127da8dea56d9af52bc346cf7cc6613547 Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Tue, 7 Nov 2017 20:45:43 +0100 Subject: 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. --- src/projects.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/projects.h') 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 -- cgit v1.2.3