49 lines · c
1// -*- C++ -*-2//===----------------------------------------------------------------------===//3//4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.5// See https://llvm.org/LICENSE.txt for license information.6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7//8//===----------------------------------------------------------------------===//9 10/*11 stddef.h synopsis12 13Macros:14 15 offsetof(type,member-designator)16 NULL17 18Types:19 20 ptrdiff_t21 size_t22 max_align_t // C++1123 nullptr_t24 25*/26 27#if defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)28# include <__cxx03/__config>29#else30# include <__config>31#endif32 33#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)34# pragma GCC system_header35#endif36 37// Note: This include is outside of header guards because we sometimes get included multiple times38// with different defines and the underlying <stddef.h> will know how to deal with that.39#include_next <stddef.h>40 41#ifndef _LIBCPP_STDDEF_H42# define _LIBCPP_STDDEF_H43 44# ifdef __cplusplus45typedef decltype(nullptr) nullptr_t;46# endif47 48#endif // _LIBCPP_STDDEF_H49