Enable DATE_BUILD_DLL for Linux and macOS

This commit is contained in:
Howard Hinnant
2017-09-05 20:07:13 -04:00
parent c09d35534d
commit 4cb893c780

6
tz.h
View File

@@ -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