2015-10-08 22:25:27 +00:00
|
|
|
// -*- C++ -*-
|
2021-11-17 16:25:01 -05:00
|
|
|
//===----------------------------------------------------------------------===//
|
2015-10-08 22:25:27 +00:00
|
|
|
//
|
2019-01-19 10:56:40 +00:00
|
|
|
// 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
|
2015-10-08 22:25:27 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
/*
|
|
|
|
stddef.h synopsis
|
|
|
|
|
|
|
|
Macros:
|
|
|
|
|
|
|
|
offsetof(type,member-designator)
|
|
|
|
NULL
|
|
|
|
|
|
|
|
Types:
|
|
|
|
|
|
|
|
ptrdiff_t
|
|
|
|
size_t
|
2020-04-04 00:48:02 +02:00
|
|
|
max_align_t // C++11
|
2015-10-08 22:25:27 +00:00
|
|
|
nullptr_t
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-12-21 13:01:48 +01:00
|
|
|
#if defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
|
|
|
|
# include <__cxx03/stddef.h>
|
|
|
|
#else
|
2024-12-10 16:02:12 +01:00
|
|
|
# include <__config>
|
2024-04-02 08:14:04 -04:00
|
|
|
|
2024-12-10 16:02:12 +01:00
|
|
|
# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
|
|
# pragma GCC system_header
|
|
|
|
# endif
|
2024-04-11 12:36:56 -04:00
|
|
|
|
2024-04-02 08:14:04 -04:00
|
|
|
// Note: This include is outside of header guards because we sometimes get included multiple times
|
|
|
|
// with different defines and the underlying <stddef.h> will know how to deal with that.
|
2024-12-10 16:02:12 +01:00
|
|
|
# include_next <stddef.h>
|
2024-04-02 08:14:04 -04:00
|
|
|
|
2024-12-10 16:02:12 +01:00
|
|
|
# ifndef _LIBCPP_STDDEF_H
|
|
|
|
# define _LIBCPP_STDDEF_H
|
2015-10-08 22:25:27 +00:00
|
|
|
|
2024-12-10 16:02:12 +01:00
|
|
|
# ifdef __cplusplus
|
2021-09-08 12:57:58 -04:00
|
|
|
typedef decltype(nullptr) nullptr_t;
|
2024-12-10 16:02:12 +01:00
|
|
|
# endif
|
2024-12-21 13:01:48 +01:00
|
|
|
# endif // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
|
2015-10-08 22:25:27 +00:00
|
|
|
|
2021-04-20 12:03:32 -04:00
|
|
|
#endif // _LIBCPP_STDDEF_H
|