Include cmath/math.h in DataTypes.h regardless of whether MSVC is being used.
authorStefanus Du Toit <stefanus.dutoit@rapidmind.com>
Tue, 28 Jul 2009 13:41:07 +0000 (13:41 +0000)
committerStefanus Du Toit <stefanus.dutoit@rapidmind.com>
Tue, 28 Jul 2009 13:41:07 +0000 (13:41 +0000)
Fixes MSVC build of LiveInterval.cpp.

Patch by Nicolas Capens.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77317 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/DataTypes.h.cmake
include/llvm/Support/DataTypes.h.in

index dddc1d194cbc7f75f5b17d39a75ef144a45d12f6..25d55514ecb736e4b6b176ed0bfa41c4aa5ac8ad 100644 (file)
 // FIXME: UGLY HACK (Added by Kevin)
 #define HAVE_UINT64_T 1
 
+#ifdef __cplusplus
+#include <cmath>
+#else
+#include <math.h>
+#endif
+
 #ifndef _MSC_VER
 
 // Note that this header's correct operation depends on __STDC_LIMIT_MACROS
 #include <stdint.h>
 #endif
 
-#ifdef __cplusplus
-#include <cmath>
-#else
-#include <math.h>
-#endif
-
 #ifdef _AIX
 #include "llvm/Support/AIXDataTypesFix.h"
 #endif
index 72063f7d2add3a4b74bcf43ff3912bf0a1f6d9c8..f63ca097b5d6ee7062c4287aa0a999f270bc2ec5 100644 (file)
 #undef HAVE_UINT64_T
 #undef HAVE_U_INT64_T
 
+#ifdef __cplusplus
+#include <cmath>
+#else
+#include <math.h>
+#endif
+
 #ifndef _MSC_VER
 
 // Note that this header's correct operation depends on __STDC_LIMIT_MACROS
 #include <stdint.h>
 #endif
 
-#ifdef __cplusplus
-#include <cmath>
-#else
-#include <math.h>
-#endif
-
 #ifdef _AIX
 #include "llvm/Support/AIXDataTypesFix.h"
 #endif