Commit ac39cc1e by Abseil Team Committed by Copybara-Service

Import of CCTZ from GitHub.

PiperOrigin-RevId: 550964088
Change-Id: I54e4bff1cf72442c34e1668dbe8af9337eb0aa46
parent d74b1104
...@@ -53,10 +53,11 @@ cc_library( ...@@ -53,10 +53,11 @@ cc_library(
"include/cctz/time_zone.h", "include/cctz/time_zone.h",
"include/cctz/zone_info_source.h", "include/cctz/zone_info_source.h",
], ],
# OS X and iOS no longer use `linkopts = ["-framework CoreFoundation"]` linkopts = select({
# as (1) bazel adds it automatically, and (2) it caused problems when "@platforms//os:osx": ["-Wl,-framework,CoreFoundation"],
# cross-compiling for Android. "@platforms//os:ios": ["-Wl,-framework,CoreFoundation"],
# See https://github.com/abseil/abseil-cpp/issues/326 for details. "//conditions:default": [],
}),
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [
":civil_time", ":civil_time",
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#if defined(HAS_STRPTIME) && HAS_STRPTIME #if defined(HAS_STRPTIME) && HAS_STRPTIME
#if !defined(_XOPEN_SOURCE) && !defined(__OpenBSD__) #if !defined(_XOPEN_SOURCE) && !defined(__OpenBSD__)
#define _XOPEN_SOURCE // Definedness suffices for strptime(). #define _XOPEN_SOURCE 500 // Exposes definitions for SUSv2 (UNIX 98).
#endif #endif
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment