10b57cec5SDimitry Andric // -*- C++ -*- 2349cc55cSDimitry Andric //===----------------------------------------------------------------------===// 30b57cec5SDimitry Andric // 40b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 50b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 60b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 70b57cec5SDimitry Andric // 80b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 90b57cec5SDimitry Andric 100b57cec5SDimitry Andric /* 110b57cec5SDimitry Andric stddef.h synopsis 120b57cec5SDimitry Andric 130b57cec5SDimitry Andric Macros: 140b57cec5SDimitry Andric 150b57cec5SDimitry Andric offsetof(type,member-designator) 160b57cec5SDimitry Andric NULL 170b57cec5SDimitry Andric 180b57cec5SDimitry Andric Types: 190b57cec5SDimitry Andric 200b57cec5SDimitry Andric ptrdiff_t 210b57cec5SDimitry Andric size_t 225ffd83dbSDimitry Andric max_align_t // C++11 230b57cec5SDimitry Andric nullptr_t 240b57cec5SDimitry Andric 250b57cec5SDimitry Andric */ 260b57cec5SDimitry Andric 270b57cec5SDimitry Andric #include <__config> 280b57cec5SDimitry Andric 290b57cec5SDimitry Andric #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 300b57cec5SDimitry Andric # pragma GCC system_header 310b57cec5SDimitry Andric #endif 320b57cec5SDimitry Andric 33*dfa39133SDimitry Andric // Note: This include is outside of header guards because we sometimes get included multiple times 34*dfa39133SDimitry Andric // with different defines and the underlying <stddef.h> will know how to deal with that. 350b57cec5SDimitry Andric #include_next <stddef.h> 36*dfa39133SDimitry Andric 37*dfa39133SDimitry Andric #ifndef _LIBCPP_STDDEF_H 38*dfa39133SDimitry Andric # define _LIBCPP_STDDEF_H 390b57cec5SDimitry Andric 400b57cec5SDimitry Andric # ifdef __cplusplus 4181ad6265SDimitry Andric typedef decltype(nullptr) nullptr_t; 420b57cec5SDimitry Andric # endif 430b57cec5SDimitry Andric 440b57cec5SDimitry Andric #endif // _LIBCPP_STDDEF_H 45