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 <__chrono/time_zone.h> 20 # include <__chrono/time_zone_link.h> 21 # include <__config> 22 # include <string> 23 # include <vector> 24 25 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 26 # pragma GCC system_header 27 # endif 28 29 _LIBCPP_PUSH_MACROS 30 # include <__undef_macros> 31 32 _LIBCPP_BEGIN_NAMESPACE_STD 33 34 # if _LIBCPP_STD_VER >= 20 && !defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE) && !defined(_LIBCPP_HAS_NO_FILESYSTEM) && \ 35 !defined(_LIBCPP_HAS_NO_LOCALIZATION) 36 37 namespace chrono { 38 39 struct tzdb { 40 string version; 41 vector<time_zone> zones; 42 vector<time_zone_link> links; 43 }; 44 45 } // namespace chrono 46 47 # endif // _LIBCPP_STD_VER >= 20 && !defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE) && !defined(_LIBCPP_HAS_NO_FILESYSTEM) 48 // && !defined(_LIBCPP_HAS_NO_LOCALIZATION) 49 50 _LIBCPP_END_NAMESPACE_STD 51 52 _LIBCPP_POP_MACROS 53 54 #endif // !defined(_LIBCPP_HAS_NO_INCOMPLETE_TZDB) 55 56 #endif // _LIBCPP___CHRONO_TZDB_H 57