mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-18 05:18:43 +00:00
157bbe6aea
Back in https://reviews.llvm.org/D109459, we stopped using the C++03 emulation for std::nullptr_t by default, which was an ABI break. We still left a knob for users to turn it back on if they were broken by the change, with a note that we would remove that knob after one release. The time has now come to remove the knob and clean up the std::nullptr_t emulation. Differential Revision: https://reviews.llvm.org/D114786
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
// -*- C++ -*-
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#if defined(__need_ptrdiff_t) || defined(__need_size_t) || \
|
|
defined(__need_wchar_t) || defined(__need_NULL) || defined(__need_wint_t)
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
# pragma GCC system_header
|
|
#endif
|
|
|
|
#include_next <stddef.h>
|
|
|
|
#elif !defined(_LIBCPP_STDDEF_H)
|
|
#define _LIBCPP_STDDEF_H
|
|
|
|
/*
|
|
stddef.h synopsis
|
|
|
|
Macros:
|
|
|
|
offsetof(type,member-designator)
|
|
NULL
|
|
|
|
Types:
|
|
|
|
ptrdiff_t
|
|
size_t
|
|
max_align_t // C++11
|
|
nullptr_t
|
|
|
|
*/
|
|
|
|
#include <__config>
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
# pragma GCC system_header
|
|
#endif
|
|
|
|
#include_next <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
typedef decltype(nullptr) nullptr_t;
|
|
#endif
|
|
|
|
#endif // _LIBCPP_STDDEF_H
|