mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
Include cmath/math.h in DataTypes.h regardless of whether MSVC is being used.
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
This commit is contained in:
@@ -30,6 +30,12 @@
|
|||||||
// FIXME: UGLY HACK (Added by Kevin)
|
// FIXME: UGLY HACK (Added by Kevin)
|
||||||
#define HAVE_UINT64_T 1
|
#define HAVE_UINT64_T 1
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#include <cmath>
|
||||||
|
#else
|
||||||
|
#include <math.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
|
|
||||||
// Note that this header's correct operation depends on __STDC_LIMIT_MACROS
|
// Note that this header's correct operation depends on __STDC_LIMIT_MACROS
|
||||||
@@ -58,12 +64,6 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
#include <cmath>
|
|
||||||
#else
|
|
||||||
#include <math.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _AIX
|
#ifdef _AIX
|
||||||
#include "llvm/Support/AIXDataTypesFix.h"
|
#include "llvm/Support/AIXDataTypesFix.h"
|
||||||
#endif
|
#endif
|
||||||
|
@@ -27,6 +27,12 @@
|
|||||||
#undef HAVE_UINT64_T
|
#undef HAVE_UINT64_T
|
||||||
#undef HAVE_U_INT64_T
|
#undef HAVE_U_INT64_T
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#include <cmath>
|
||||||
|
#else
|
||||||
|
#include <math.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
|
|
||||||
// Note that this header's correct operation depends on __STDC_LIMIT_MACROS
|
// Note that this header's correct operation depends on __STDC_LIMIT_MACROS
|
||||||
@@ -55,12 +61,6 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
#include <cmath>
|
|
||||||
#else
|
|
||||||
#include <math.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _AIX
|
#ifdef _AIX
|
||||||
#include "llvm/Support/AIXDataTypesFix.h"
|
#include "llvm/Support/AIXDataTypesFix.h"
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user