Skip to content

Commit

Permalink
Unbreak
Browse files Browse the repository at this point in the history
  • Loading branch information
asl committed Jul 30, 2024
1 parent c15b572 commit 914c602
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 9 deletions.
1 change: 1 addition & 0 deletions thirdparty/llvm/ADT/ArrayRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <initializer_list>
#include <iterator>
#include <memory>
#include <optional>
#include <type_traits>
#include <vector>

Expand Down
44 changes: 35 additions & 9 deletions thirdparty/llvm/Support/DataTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,48 @@
#ifndef SUPPORT_DATATYPES_H
#define SUPPORT_DATATYPES_H

#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UINT64_T 1
#define HAVE_U_INT64_T 1
#include <inttypes.h>
#include <stdint.h>

#ifdef __cplusplus
#include <cmath>
#else
#include <math.h>
#ifndef _MSC_VER

#if !defined(UINT32_MAX)
# error "The standard header <cstdint> is not C++11 compliant. Must #define "\
"__STDC_LIMIT_MACROS before #including llvm-c/DataTypes.h"
#endif

#include <inttypes.h>
#if !defined(UINT32_C)
# error "The standard header <cstdint> is not C++11 compliant. Must #define "\
"__STDC_CONSTANT_MACROS before #including llvm-c/DataTypes.h"
#endif

/* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */
#include <sys/types.h>

#ifdef _AIX
// GCC is strict about defining large constants: they must have LL modifier.
#undef INT64_MAX
#undef INT64_MIN
#endif

#else /* _MSC_VER */
#ifdef __cplusplus
#include <cstddef>
#include <cstdlib>
#else
#include <stddef.h>
#include <stdlib.h>
#endif
#include <sys/types.h>

#if defined(_WIN64)
typedef signed __int64 ssize_t;
#else
typedef signed int ssize_t;
#endif /* _WIN64 */

#endif /* _MSC_VER */

/* Set defaults for constants which we cannot find. */
#if !defined(INT64_MAX)
# define INT64_MAX 9223372036854775807LL
Expand Down
1 change: 1 addition & 0 deletions thirdparty/llvm/Support/StringRef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Error.h"
#include <bitset>
#include <climits>

using namespace llvm;

Expand Down
1 change: 1 addition & 0 deletions thirdparty/small_vector/small_pod_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <llvm/ADT/PointerIntPair.h>
#include <llvm/Support/Compiler.h>

#include <cstdlib>
#include <cstring>
#include <vector>
#include <type_traits>
Expand Down

0 comments on commit 914c602

Please sign in to comment.