OSDN Git Service

Attempt to fix BuildBot breakage with MSVC.
authorEli Friedman <eli.friedman@gmail.com>
Wed, 22 Jul 2009 05:06:41 +0000 (05:06 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 22 Jul 2009 05:06:41 +0000 (05:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76722 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/DataTypes.h.cmake

index 4d6fcc8..dddc1d1 100644 (file)
@@ -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;