2015-10-09 06:25:27 +08:00
|
|
|
// -*- C++ -*-
|
|
|
|
//===--------------------------- stddef.h ---------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#if defined(__need_ptrdiff_t) || defined(__need_size_t) || \
|
|
|
|
defined(__need_wchar_t) || defined(__need_NULL) || defined(__need_wint_t)
|
2015-10-09 08:26:50 +08:00
|
|
|
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
2015-10-09 06:25:27 +08:00
|
|
|
#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
|
|
|
|
nullptr_t
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <__config>
|
|
|
|
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
2015-10-09 08:26:50 +08:00
|
|
|
#include_next <stddef.h>
|
|
|
|
|
2015-10-09 06:25:27 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
extern "C++" {
|
|
|
|
#include <__nullptr>
|
|
|
|
using std::nullptr_t;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Re-use the compiler's <stddef.h> max_align_t where possible.
|
|
|
|
#if !defined(__CLANG_MAX_ALIGN_T_DEFINED) && !defined(_GCC_MAX_ALIGN_T)
|
|
|
|
typedef long double max_align_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // _LIBCPP_STDDEF_H
|