Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/cstddef is written in an unsupported language. File is not indexed.

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 #ifndef _LIBCPP_CSTDDEF
0011 #define _LIBCPP_CSTDDEF
0012 
0013 /*
0014     cstddef synopsis
0015 
0016 Macros:
0017 
0018     offsetof(type,member-designator)
0019     NULL
0020 
0021 namespace std
0022 {
0023 
0024 Types:
0025 
0026     ptrdiff_t
0027     size_t
0028     max_align_t // C++11
0029     nullptr_t
0030     byte // C++17
0031 
0032 }  // std
0033 
0034 */
0035 
0036 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0037 #  include <__cxx03/cstddef>
0038 #else
0039 #  include <__config>
0040 #  include <version>
0041 
0042 #  include <stddef.h>
0043 
0044 #  ifndef _LIBCPP_STDDEF_H
0045 #   error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
0046           This usually means that your header search paths are not configured properly. \
0047           The header search paths should contain the C++ Standard Library headers before \
0048           any C Standard Library, and you are probably using compiler flags that make that \
0049           not be the case.
0050 #  endif
0051 
0052 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0053 #    pragma GCC system_header
0054 #  endif
0055 
0056 #  include <__cstddef/byte.h>
0057 #  include <__cstddef/max_align_t.h>
0058 #  include <__cstddef/nullptr_t.h>
0059 #  include <__cstddef/ptrdiff_t.h>
0060 #  include <__cstddef/size_t.h>
0061 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0062 
0063 #endif // _LIBCPP_CSTDDEF