From 4cb893c780525bc622534d1983cbefe01f2565f3 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 5 Sep 2017 20:07:13 -0400 Subject: [PATCH] Enable DATE_BUILD_DLL for Linux and macOS --- tz.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tz.h b/tz.h index 97b6c60..2476cc4 100644 --- a/tz.h +++ b/tz.h @@ -134,7 +134,11 @@ static_assert(HAS_REMOTE_API == 0 ? AUTO_DOWNLOAD == 0 : true, # define DATE_API # endif #else -# define DATE_API +# ifdef DATE_BUILD_DLL +# define DATE_API __attribute__ ((visibility ("default"))) +# else +# define DATE_API +# endif #endif namespace date