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// For information see https://libcxx.llvm.org/DesignDocs/TimeZone.html
11
12#ifndef _LIBCPP___CHRONO_TZDB_H
13#define _LIBCPP___CHRONO_TZDB_H
14
15#include <version>
16// Enable the contents of the header only when libc++ was built with experimental features enabled.
17#if !defined(_LIBCPP_HAS_NO_INCOMPLETE_TZDB)
18
19#  include <string>
20
21#  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
22#    pragma GCC system_header
23#  endif
24
25_LIBCPP_BEGIN_NAMESPACE_STD
26
27#  if _LIBCPP_STD_VER >= 20 && !defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE) && !defined(_LIBCPP_HAS_NO_FILESYSTEM) &&   \
28      !defined(_LIBCPP_HAS_NO_LOCALIZATION)
29
30namespace chrono {
31
32struct _LIBCPP_AVAILABILITY_TZDB tzdb {
33  string version;
34};
35
36} // namespace chrono
37
38#  endif // _LIBCPP_STD_VER >= 20 && !defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE) && !defined(_LIBCPP_HAS_NO_FILESYSTEM)
39         // && !defined(_LIBCPP_HAS_NO_LOCALIZATION)
40
41_LIBCPP_END_NAMESPACE_STD
42
43#endif // !defined(_LIBCPP_HAS_NO_INCOMPLETE_TZDB)
44
45#endif // _LIBCPP___CHRONO_TZDB_H
46