diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-07-07 13:44:26 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-07-07 13:45:35 -0400 |
commit | e847df0d3abdb58681e5a931fd3f945410a4c77a (patch) | |
tree | 2875ceb7c461887f79fdc2304853d42defe267e1 | |
parent | 70e356503abcb95d0cbf238d011312b8c07e3bc7 (diff) | |
download | vecmathlib-e847df0d3abdb58681e5a931fd3f945410a4c77a.zip vecmathlib-e847df0d3abdb58681e5a931fd3f945410a4c77a.tar.gz |
Use math.h instead of cmath when C99 math function are needed
-rw-r--r-- | floattypes.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/floattypes.h b/floattypes.h index 78f0d8b..c7b55df 100644 --- a/floattypes.h +++ b/floattypes.h @@ -5,18 +5,22 @@ -#include <cmath> #include <cstdlib> // We expect either 199711L or 201103L #if __cplusplus >= 201103L // C++11 is supported, use it +#include <cmath> #include <cstdint> #else // C++11 is not supported, work around the missing pieces +// <cmath> does not work witha all compilers; e.g. IBM's xlC on a Blue +// Gene/Q then does not provide macros for isnan, but provides +// functions instead. +#include <math.h> #include <stdint.h> |