Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / include / __chrono / tzdb.h
blobbd7b05d478e5035ffb663d09cef6bc9bd175c87c
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 //===----------------------------------------------------------------------===//
10 // For information see https://libcxx.llvm.org/DesignDocs/TimeZone.html
12 #ifndef _LIBCPP___CHRONO_TZDB_H
13 #define _LIBCPP___CHRONO_TZDB_H
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)
19 # include <string>
21 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
22 # pragma GCC system_header
23 # endif
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)
30 namespace chrono {
32 struct _LIBCPP_AVAILABILITY_TZDB tzdb {
33 string version;
36 } // namespace chrono
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