aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"