xref: /llvm-project/libcxx/include/ctgmath (revision f69585235ec85d54e0f3fc41b2d5700430907f99)
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-exception
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef _LIBCPP_CTGMATH
11#define _LIBCPP_CTGMATH
12
13/*
14    ctgmath synopsis
15
16#include <ccomplex>
17#include <cmath>
18
19*/
20
21#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
22#  include <__cxx03/ctgmath>
23#else
24#  include <cmath>
25#  include <complex>
26
27#  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
28#    pragma GCC system_header
29#  endif
30
31#  if _LIBCPP_STD_VER >= 20
32
33using __standard_header_ctgmath
34    _LIBCPP_DEPRECATED_("removed in C++20. Include <cmath> and <complex> instead.") _LIBCPP_NODEBUG = void;
35using __use_standard_header_ctgmath _LIBCPP_NODEBUG = __standard_header_ctgmath;
36
37#  elif _LIBCPP_STD_VER >= 17
38
39using __standard_header_ctgmath _LIBCPP_DEPRECATED_("Include <cmath> and <complex> instead.") _LIBCPP_NODEBUG = void;
40using __use_standard_header_ctgmath _LIBCPP_NODEBUG = __standard_header_ctgmath;
41
42#  endif
43
44#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
45
46#endif // _LIBCPP_CTGMATH
47