mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 08:31:03 +08:00
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:
parent
bbe2f51bc0
commit
7657ad7855
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
#ifndef HAS_REMOTE_API
|
#ifndef HAS_REMOTE_API
|
||||||
# if USE_OS_TZDB == 0
|
# if USE_OS_TZDB == 0
|
||||||
# ifdef _WIN32
|
# if defined _WIN32 || defined __ANDROID__
|
||||||
# define HAS_REMOTE_API 0
|
# define HAS_REMOTE_API 0
|
||||||
# else
|
# else
|
||||||
# define HAS_REMOTE_API 1
|
# define HAS_REMOTE_API 1
|
||||||
|
@ -139,6 +139,9 @@ struct index_entry_t {
|
|||||||
// the current time zone. On Win32 windows.h provides a means to do it.
|
// 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.
|
// gcc/mingw supports unistd.h on Win32 but MSVC does not.
|
||||||
|
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
# define INSTALL .
|
||||||
|
#endif
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# ifdef WINAPI_FAMILY
|
# ifdef WINAPI_FAMILY
|
||||||
# include <winapifamily.h>
|
# include <winapifamily.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user