Index: Core/Core.upp =================================================================== --- Core/Core.upp (wersja 9806) +++ Core/Core.upp (kopia robocza) @@ -9,7 +9,7 @@ library(WIN32 !GUI !GNU !GCC) "ole32 oleaut32 oldnames"; -library(LINUX) "pthread dl rt"; +library(LINUX !ANDROID) "pthread dl rt"; library(BSD) "pthread rt execinfo"; Index: Core/Cpu.cpp =================================================================== --- Core/Cpu.cpp (wersja 9806) +++ Core/Cpu.cpp (kopia robocza) @@ -106,7 +106,11 @@ int CPU_Cores() { - return minmax(get_nprocs(), 1, 256); + #ifdef PLATFORM_ANDROID + return 1; + #else + return minmax(get_nprocs(), 1, 256); + #endif } #else int CPU_Cores() Index: Core/Lang.cpp =================================================================== --- Core/Lang.cpp (wersja 9806) +++ Core/Lang.cpp (kopia robocza) @@ -6,7 +6,9 @@ #endif #ifdef PLATFORM_POSIX #include -#include + #ifndef PLATFORM_ANDROID + #include + #endif #endif NAMESPACE_UPP Index: Core/LangInfo.cpp =================================================================== --- Core/LangInfo.cpp (wersja 9806) +++ Core/LangInfo.cpp (kopia robocza) @@ -6,7 +6,9 @@ #endif #ifdef PLATFORM_POSIX #include -#include + #ifndef PLATFORM_ANDROID + #include + #endif #endif namespace Upp { @@ -295,7 +297,7 @@ } #endif -#ifdef PLATFORM_POSIX +#if defined(PLATFORM_POSIX) && !defined(PLATFORM_ANDROID) String langtext = LNGAsText(language); char ltext[6]; ltext[0] = ToLower(langtext[0]); Index: Core/Util.cpp =================================================================== --- Core/Util.cpp (wersja 9806) +++ Core/Util.cpp (kopia robocza) @@ -4,7 +4,7 @@ # include #endif -#if defined(PLATFORM_POSIX) && defined(COMPILER_GCC) +#if defined(PLATFORM_POSIX) && defined(COMPILER_GCC) && !defined(PLATFORM_ANDROID) # include # include #endif @@ -38,7 +38,7 @@ } -#if defined(PLATFORM_POSIX) && defined(COMPILER_GCC) +#if defined(PLATFORM_POSIX) && defined(COMPILER_GCC) && !defined(PLATFORM_ANDROID) void AddStackTrace(char * str, int len) { const size_t max_depth = 100; Index: Core/config.h =================================================================== --- Core/config.h (wersja 9806) +++ Core/config.h (kopia robocza) @@ -18,9 +18,12 @@ #if __unix || __unix__ || __APPLE__ #define PLATFORM_POSIX 1 - + #if __linux #define PLATFORM_LINUX 1 + #if __ANDROID__ + #define PLATFORM_ANDROID 1 + #endif // zvzv add // __linux is undef on APPLE MACOSX, MACOSX has BSD stuff #elif __APPLE__ @@ -76,6 +79,12 @@ #define CPU_BE 1 #define CPU_BIG_ENDIAN 1 #define CPU_ALIGNED 1 + #elif __aarch64__ + #define CPU_64 1 + #define CPU_ARM 1 + #define CPU_LE 1 + #define CPU_LITTLE_ENDIAN 1 + #define CPU_UNALIGNED 1 #elif __arm__ #define CPU_32 1 #define CPU_ARM 1