mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 13:26:08 +00:00

This is part of the "Freezing C++03 headers" proposal explained in https://discourse.llvm.org/t/rfc-freezing-c-03-headers-in-libc/77319/58. This patch updates the include paths used in `__cxx03/` to refer to the `__cxx03/` headers.
32 lines
794 B
C++
32 lines
794 B
C++
// -*- C++ -*-
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
/*
|
|
cassert synopsis
|
|
|
|
Macros:
|
|
|
|
assert
|
|
|
|
*/
|
|
|
|
#include <__cxx03/__config>
|
|
|
|
// <assert.h> is not provided by libc++
|
|
#if __has_include(<assert.h>)
|
|
# include <assert.h>
|
|
# ifdef _LIBCPP_ASSERT_H
|
|
# error "If libc++ starts defining <assert.h>, the __has_include check should move to libc++'s <assert.h>"
|
|
# endif
|
|
#endif
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
# pragma GCC system_header
|
|
#endif
|