2 //===----------------------------------------------------------------------===//
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
8 //===----------------------------------------------------------------------===//
10 // For information see https://libcxx.llvm.org/DesignDocs/TimeZone.html
12 #ifndef _LIBCPP___CHRONO_TZDB_H
13 #define _LIBCPP___CHRONO_TZDB_H
16 // Enable the contents of the header only when libc++ was built with experimental features enabled.
17 #if !defined(_LIBCPP_HAS_NO_INCOMPLETE_TZDB)
21 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
22 # pragma GCC system_header
25 _LIBCPP_BEGIN_NAMESPACE_STD
27 # if _LIBCPP_STD_VER >= 20 && !defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE) && !defined(_LIBCPP_HAS_NO_FILESYSTEM) && \
28 !defined(_LIBCPP_HAS_NO_LOCALIZATION)
32 struct _LIBCPP_AVAILABILITY_TZDB tzdb
{
38 # endif // _LIBCPP_STD_VER >= 20 && !defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE) && !defined(_LIBCPP_HAS_NO_FILESYSTEM)
39 // && !defined(_LIBCPP_HAS_NO_LOCALIZATION)
41 _LIBCPP_END_NAMESPACE_STD
43 #endif // !defined(_LIBCPP_HAS_NO_INCOMPLETE_TZDB)
45 #endif // _LIBCPP___CHRONO_TZDB_H