Skip to content

Commit 68616cc

Browse files
alesapinclaude
andcommitted
Fix init_tzdb forward declaration for Android with USE_OS_TZDB
The forward declaration of `init_tzdb` was guarded by `!ANDROID`, but the function definition exists under `USE_OS_TZDB` and has Android-specific code. This caused a compilation error on Android when `USE_OS_TZDB=1`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 956bfb5 commit 68616cc

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • cpp/src/arrow/vendored/datetime

cpp/src/arrow/vendored/datetime/tz.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,7 @@ get_tz_dir()
555555
static_assert(min_year <= max_year, "Configuration error");
556556
#endif
557557

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

562560
tzdb_list::~tzdb_list()
563561
{

0 commit comments

Comments
 (0)