diff --git a/CPP/Windows/TimeUtils.cpp b/CPP/Windows/TimeUtils.cpp index bbd79ba..8df3ea3 100644 --- a/CPP/Windows/TimeUtils.cpp +++ b/CPP/Windows/TimeUtils.cpp @@ -259,7 +259,7 @@ bool GetSecondsSince1601(unsigned year, unsigned month, unsigned day, Cygwin 2.9, mingw, MSVC 14, Android 9.0. Android NDK defines TIME_UTC but doesn't have the timespec_get(). */ -#if defined(TIME_UTC) && !defined(__ANDROID__) +#if defined(TIME_UTC) && (!defined(__ANDROID__) || __ANDROID_API__ >= 29) #define ZIP7_USE_timespec_get // #pragma message("ZIP7_USE_timespec_get") #elif defined(CLOCK_REALTIME)