aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorCharles Karney <charles@karney.com>2019-09-19 08:30:21 -0400
committerGitHub <noreply@github.com>2019-09-19 08:30:21 -0400
commit8948068deaa8b1b9cf14e7e509d06abc3a0b8dcf (patch)
treed27e655be51c44ef5d2c26dee0cc22547a36b029 /CMakeLists.txt
parent72203ca68e123a237c8c748d39131b702ea4b646 (diff)
parent21c6d9cccde9318dd38c60b8bc559508bcee1a91 (diff)
downloadPROJ-8948068deaa8b1b9cf14e7e509d06abc3a0b8dcf.tar.gz
PROJ-8948068deaa8b1b9cf14e7e509d06abc3a0b8dcf.zip
Merge pull request #1618 from cffk/c99-math-update
Remove unneeded C99 compatibility functions from math.cpp and proj_math.h I'll do the clean up of the -std=c89 flags etc. as a separate pull request.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d44d20ce..5f463078 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -139,11 +139,9 @@ check_c_source_compiles("
#include <math.h>
int main() {
int q;
- return (int)(
- hypot(3.0, 4.0) + atanh(0.8) + cbrt(8.0) +
- remquo(100.0, 90.0, &q) +
- remainder(100.0, 90.0) + copysign(1.0, -0.0) +
- log1p(0.1) + asinh(0.1)) + isnan(0.0);
+ return (int)(hypot(3.0, 4.0) + atanh(0.8) + copysign(1.0, -0.0) +
+ cbrt(8.0) + remainder(100.0, 90.0) +
+ remquo(100.0, 90.0, &q));
}
" C99_MATH)
if(C99_MATH)