math.h creates ambiguity
authorJim Laskey <jlaskey@mac.com>
Thu, 9 Nov 2006 08:26:22 +0000 (08:26 +0000)
committerJim Laskey <jlaskey@mac.com>
Thu, 9 Nov 2006 08:26:22 +0000 (08:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31591 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/DataTypes.h.in

index ab438f8805642437421c799e590c18da2dd00a79..b2ca3d3f868ae961d3debbcce9a425be3c608592 100644 (file)
 #include <stdint.h>
 #endif
 
+#ifdef __cplusplus
+#include <cmath>
+#else
 #include <math.h>
+#endif
 
 #ifdef _AIX
 #include "llvm/Support/AIXDataTypesFix.h"