Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:14:08

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 /*
0011     stddef.h synopsis
0012 
0013 Macros:
0014 
0015     offsetof(type,member-designator)
0016     NULL
0017 
0018 Types:
0019 
0020     ptrdiff_t
0021     size_t
0022     max_align_t // C++11
0023     nullptr_t
0024 
0025 */
0026 
0027 #if defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0028 #  include <__cxx03/stddef.h>
0029 #else
0030 #  include <__config>
0031 
0032 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0033 #    pragma GCC system_header
0034 #  endif
0035 
0036 // Note: This include is outside of header guards because we sometimes get included multiple times
0037 //       with different defines and the underlying <stddef.h> will know how to deal with that.
0038 #  include_next <stddef.h>
0039 
0040 #  ifndef _LIBCPP_STDDEF_H
0041 #    define _LIBCPP_STDDEF_H
0042 
0043 #    ifdef __cplusplus
0044 typedef decltype(nullptr) nullptr_t;
0045 #    endif
0046 #  endif // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0047 
0048 #endif // _LIBCPP_STDDEF_H