[llvm-commits] [llvm] r77317 - in /llvm/trunk/include/llvm/Support: DataTypes.h.cmake DataTypes.h.in
Stefanus Du Toit
stefanus.dutoit at rapidmind.com
Tue Jul 28 06:41:32 PDT 2009
Author: sdt
Date: Tue Jul 28 08:41:07 2009
New Revision: 77317
URL: http://llvm.org/viewvc/llvm-project?rev=77317&view=rev
Log:
Include cmath/math.h in DataTypes.h regardless of whether MSVC is being used.
Fixes MSVC build of LiveInterval.cpp.
Patch by Nicolas Capens.
Modified:
llvm/trunk/include/llvm/Support/DataTypes.h.cmake
llvm/trunk/include/llvm/Support/DataTypes.h.in
Modified: llvm/trunk/include/llvm/Support/DataTypes.h.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/DataTypes.h.cmake?rev=77317&r1=77316&r2=77317&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/DataTypes.h.cmake (original)
+++ llvm/trunk/include/llvm/Support/DataTypes.h.cmake Tue Jul 28 08:41:07 2009
@@ -30,6 +30,12 @@
// 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
@@ -58,12 +64,6 @@
#include <stdint.h>
#endif
-#ifdef __cplusplus
-#include <cmath>
-#else
-#include <math.h>
-#endif
-
#ifdef _AIX
#include "llvm/Support/AIXDataTypesFix.h"
#endif
Modified: llvm/trunk/include/llvm/Support/DataTypes.h.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/DataTypes.h.in?rev=77317&r1=77316&r2=77317&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/DataTypes.h.in (original)
+++ llvm/trunk/include/llvm/Support/DataTypes.h.in Tue Jul 28 08:41:07 2009
@@ -27,6 +27,12 @@
#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
@@ -55,12 +61,6 @@
#include <stdint.h>
#endif
-#ifdef __cplusplus
-#include <cmath>
-#else
-#include <math.h>
-#endif
-
#ifdef _AIX
#include "llvm/Support/AIXDataTypesFix.h"
#endif
More information about the llvm-commits
mailing list