Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/cstdalign 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_CSTDALIGN
0011 #define _LIBCPP_CSTDALIGN
0012 
0013 /*
0014     cstdalign synopsis
0015 
0016 Macros:
0017 
0018     __alignas_is_defined
0019     __alignof_is_defined
0020 
0021 */
0022 
0023 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0024 #  include <__cxx03/__config>
0025 #else
0026 #  include <__config>
0027 
0028 // <stdalign.h> is not provided by libc++
0029 #  if __has_include(<stdalign.h>)
0030 #    include <stdalign.h>
0031 #    ifdef _LIBCPP_STDALIGN_H
0032 #      error "If libc++ starts defining <stdalign.h>, the __has_include check should move to libc++'s <stdalign.h>"
0033 #    endif
0034 #  endif
0035 
0036 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0037 #    pragma GCC system_header
0038 #  endif
0039 
0040 #  undef __alignas_is_defined
0041 #  define __alignas_is_defined 1
0042 
0043 #  undef __alignof_is_defined
0044 #  define __alignof_is_defined 1
0045 
0046 #  if _LIBCPP_STD_VER >= 20
0047 
0048 using __standard_header_cstdalign _LIBCPP_DEPRECATED_("removed in C++20.") _LIBCPP_NODEBUG = void;
0049 using __use_standard_header_cstdalign _LIBCPP_NODEBUG = __standard_header_cstdalign;
0050 
0051 #  elif _LIBCPP_STD_VER >= 17
0052 
0053 using __standard_header_cstdalign _LIBCPP_DEPRECATED _LIBCPP_NODEBUG = void;
0054 using __use_standard_header_cstdalign _LIBCPP_NODEBUG                = __standard_header_cstdalign;
0055 
0056 #  endif
0057 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0058 
0059 #endif // _LIBCPP_CSTDALIGN