diff options
author | Stefanus Du Toit <stefanus.dutoit@rapidmind.com> | 2009-07-28 13:41:07 +0000 |
---|---|---|
committer | Stefanus Du Toit <stefanus.dutoit@rapidmind.com> | 2009-07-28 13:41:07 +0000 |
commit | 9b97fc785b5a925966c70919c2ee2889f4beff7e (patch) | |
tree | ed8153b567875a2d524981f6199afeae3f073c05 /include/llvm/Support/DataTypes.h.cmake | |
parent | bae20a6353583089224b94280a2dd69805dca247 (diff) | |
download | llvm-9b97fc785b5a925966c70919c2ee2889f4beff7e.tar.gz llvm-9b97fc785b5a925966c70919c2ee2889f4beff7e.tar.bz2 llvm-9b97fc785b5a925966c70919c2ee2889f4beff7e.tar.xz |
Include cmath/math.h in DataTypes.h regardless of whether MSVC is being used.
Fixes MSVC build of LiveInterval.cpp.
Patch by Nicolas Capens.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/DataTypes.h.cmake')
-rw-r--r-- | include/llvm/Support/DataTypes.h.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Support/DataTypes.h.cmake b/include/llvm/Support/DataTypes.h.cmake index dddc1d194c..25d55514ec 100644 --- a/include/llvm/Support/DataTypes.h.cmake +++ b/include/llvm/Support/DataTypes.h.cmake @@ -30,6 +30,12 @@ // FIXME: UGLY HACK (Added by Kevin) #define HAVE_UINT64_T 1 +#ifdef __cplusplus +#include <cmath> +#else +#include <math.h> +#endif + #ifndef _MSC_VER // Note that this header's correct operation depends on __STDC_LIMIT_MACROS @@ -58,12 +64,6 @@ #include <stdint.h> #endif -#ifdef __cplusplus -#include <cmath> -#else -#include <math.h> -#endif - #ifdef _AIX #include "llvm/Support/AIXDataTypesFix.h" #endif |