Skip to content

Commit

Permalink
fix: android build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Nov 5, 2024
1 parent 5bdb7e6 commit b5d13dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions include/date/tz.h
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ class time_zone
load_data(std::istream& inf, std::int32_t tzh_leapcnt, std::int32_t tzh_timecnt,
std::int32_t tzh_typecnt, std::int32_t tzh_charcnt);
# if defined(ANDROID) || defined(__ANDROID__)
public:
void parse_from_android_tzdata(std::ifstream& inf, const std::size_t off);
# endif // defined(ANDROID) || defined(__ANDROID__)
#else // !USE_OS_TZDB
Expand Down
2 changes: 0 additions & 2 deletions src/tz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,9 +555,7 @@ get_tz_dir()
static_assert(min_year <= max_year, "Configuration error");
#endif

#if !defined(ANDROID) && !defined(__ANDROID__)
static std::unique_ptr<tzdb> init_tzdb();
#endif // !defined(ANDROID) && !defined(__ANDROID__)

tzdb_list::~tzdb_list()
{
Expand Down

0 comments on commit b5d13dd

Please sign in to comment.