Update generated llvm DataTypes.h header.
This commit is contained in:
parent
7d0ce7aa30
commit
fe73cb29ea
@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
/* Please leave this file C-compatible. */
|
/* Please leave this file C-compatible. */
|
||||||
|
|
||||||
/* Please keep this file in sync with DataTypes.h.in */
|
|
||||||
|
|
||||||
#ifndef SUPPORT_DATATYPES_H
|
#ifndef SUPPORT_DATATYPES_H
|
||||||
#define SUPPORT_DATATYPES_H
|
#define SUPPORT_DATATYPES_H
|
||||||
|
|
||||||
@ -38,36 +36,43 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#include <cinttypes>
|
||||||
|
#else
|
||||||
#ifdef HAVE_INTTYPES_H
|
#ifdef HAVE_INTTYPES_H
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#include <cstdint>
|
||||||
|
#else
|
||||||
#ifdef HAVE_STDINT_H
|
#ifdef HAVE_STDINT_H
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#else
|
#else
|
||||||
#error "Compiler must provide an implementation of stdint.h"
|
#error "Compiler must provide an implementation of stdint.h"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
|
|
||||||
/* Note that this header's correct operation depends on __STDC_LIMIT_MACROS
|
#if !defined(UINT32_MAX)
|
||||||
being defined. We would define it here, but in order to prevent Bad Things
|
# error "The standard header <cstdint> is not C++11 compliant. Must #define "\
|
||||||
happening when system headers or C++ STL headers include stdint.h before we
|
"__STDC_LIMIT_MACROS before #including Support/DataTypes.h"
|
||||||
define it here, we define it on the g++ command line (in Makefile.rules). */
|
|
||||||
#if !defined(__STDC_LIMIT_MACROS)
|
|
||||||
# error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__STDC_CONSTANT_MACROS)
|
#if !defined(UINT32_C)
|
||||||
# error "Must #define __STDC_CONSTANT_MACROS before " \
|
# error "The standard header <cstdint> is not C++11 compliant. Must #define "\
|
||||||
"#including Support/DataTypes.h"
|
"__STDC_CONSTANT_MACROS before #including Support/DataTypes.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */
|
/* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#ifdef _AIX
|
#ifdef _AIX
|
||||||
#include "llvm/Support/AIXDataTypesFix.h"
|
// GCC is strict about defining large constants: they must have LL modifier.
|
||||||
|
#undef INT64_MAX
|
||||||
|
#undef INT64_MIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Handle incorrect definition of uint64_t as u_int64_t */
|
/* Handle incorrect definition of uint64_t as u_int64_t */
|
||||||
@ -80,14 +85,14 @@ typedef u_int64_t uint64_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstddef>
|
||||||
|
#else
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#ifdef __cplusplus
|
|
||||||
#include <cmath>
|
|
||||||
#else
|
|
||||||
#include <math.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#if defined(_WIN64)
|
#if defined(_WIN64)
|
||||||
typedef signed __int64 ssize_t;
|
typedef signed __int64 ssize_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user