summaryrefslogtreecommitdiff
path: root/include/llvm/Support/DataTypes.h.cmake
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-07-22 05:06:41 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-07-22 05:06:41 +0000
commit1126038436feef10620baa9f1528ad5c3c61fd4f (patch)
tree8daeeff849131b75dbe1c19f8a2c7ee18c041347 /include/llvm/Support/DataTypes.h.cmake
parentd8afc46ffec2b57c1d234594fcaa5fe2a5aaa746 (diff)
downloadllvm-1126038436feef10620baa9f1528ad5c3c61fd4f.tar.gz
llvm-1126038436feef10620baa9f1528ad5c3c61fd4f.tar.bz2
llvm-1126038436feef10620baa9f1528ad5c3c61fd4f.tar.xz
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/llvm/Support/DataTypes.h.cmake')
-rw-r--r--include/llvm/Support/DataTypes.h.cmake5
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;