aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-11-09 08:26:22 +0000
committerJim Laskey <jlaskey@mac.com>2006-11-09 08:26:22 +0000
commitcfa0c251bdc9cf62e84ed422a647b5d1cee451a3 (patch)
treedd35ca34473cdadbd806986725d241d2f31ad1fb
parent4320f810c8c93d1f6c568ef363af29ac21f10b03 (diff)
math.h creates ambiguity
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31591 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/DataTypes.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/DataTypes.h.in b/include/llvm/Support/DataTypes.h.in
index ab438f8805..b2ca3d3f86 100644
--- a/include/llvm/Support/DataTypes.h.in
+++ b/include/llvm/Support/DataTypes.h.in
@@ -50,7 +50,11 @@
#include <stdint.h>
#endif
+#ifdef __cplusplus
+#include <cmath>
+#else
#include <math.h>
+#endif
#ifdef _AIX
#include "llvm/Support/AIXDataTypesFix.h"