brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 7aa8cc8 Raw
53 lines · plain
1// -*- C++ -*-2//===----------------------------------------------------------------------===//3//4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.5// See https://llvm.org/LICENSE.txt for license information.6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCPP_CSTDALIGN11#define _LIBCPP_CSTDALIGN12 13/*14    cstdalign synopsis15 16Macros:17 18    __alignas_is_defined19    __alignof_is_defined20 21*/22 23#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)24#  include <__cxx03/__config>25#else26#  include <__config>27 28// <stdalign.h> is not provided by libc++29#  if __has_include(<stdalign.h>)30#    include <stdalign.h>31#    ifdef _LIBCPP_STDALIGN_H32#      error "If libc++ starts defining <stdalign.h>, the __has_include check should move to libc++'s <stdalign.h>"33#    endif34#  endif35 36#  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)37#    pragma GCC system_header38#  endif39 40#  undef __alignas_is_defined41#  define __alignas_is_defined 142 43#  undef __alignof_is_defined44#  define __alignof_is_defined 145 46#  if _LIBCPP_STD_VER >= 17 && !__building_module(std) && _LIBCPP_DIAGNOSE_DEPRECATED_HEADERS47#    warning <cstdalign> is deprecated in C++17 and removed in C++20.48#  endif49 50#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)51 52#endif // _LIBCPP_CSTDALIGN53