Fixed Android build - reasonable defaults for HAS_REMOTE_API and INSTALL to avoid including unavailable curl.h and wordexp.h

This commit is contained in:
Eugene Golushkov 2023-10-18 17:07:37 +02:00 committed by Howard Hinnant
parent bbe2f51bc0
commit 7657ad7855
2 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,7 @@
#ifndef HAS_REMOTE_API
# if USE_OS_TZDB == 0
# ifdef _WIN32
# if defined _WIN32 || defined __ANDROID__
# define HAS_REMOTE_API 0
# else
# define HAS_REMOTE_API 1

View File

@ -139,6 +139,9 @@ struct index_entry_t {
// the current time zone. On Win32 windows.h provides a means to do it.
// gcc/mingw supports unistd.h on Win32 but MSVC does not.
#ifdef __ANDROID__
# define INSTALL .
#endif
#ifdef _WIN32
# ifdef WINAPI_FAMILY
# include <winapifamily.h>