diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-07-22 05:06:41 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-07-22 05:06:41 +0000 |
commit | 1126038436feef10620baa9f1528ad5c3c61fd4f (patch) | |
tree | 8daeeff849131b75dbe1c19f8a2c7ee18c041347 /include | |
parent | d8afc46ffec2b57c1d234594fcaa5fe2a5aaa746 (diff) |
Attempt to fix BuildBot breakage with MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/DataTypes.h.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/DataTypes.h.cmake b/include/llvm/Support/DataTypes.h.cmake index 4d6fcc8e09..dddc1d194c 100644 --- a/include/llvm/Support/DataTypes.h.cmake +++ b/include/llvm/Support/DataTypes.h.cmake @@ -95,6 +95,11 @@ typedef u_int64_t uint64_t; #include <stdlib.h> #include <stddef.h> #include <sys/types.h> +#ifdef __cplusplus +#include <cmath> +#else +#include <math.h> +#endif typedef __int64 int64_t; typedef unsigned __int64 uint64_t; typedef signed int int32_t; |