diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-06-12 20:26:28 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:19:32 +0300 |
commit | 3496cc699022cc094767e9f0fd6c53594dedc018 (patch) | |
tree | 114f2d94ac97441b3131443533af75aecdd45e58 /std | |
parent | 1b4276e965aaf381b674d94e8ab631b4355bbd07 (diff) |
[android] Fixes for static lib toolchain support
Diffstat (limited to 'std')
-rw-r--r-- | std/iostream.hpp | 2 | ||||
-rw-r--r-- | std/stdint.hpp | 2 | ||||
-rw-r--r-- | std/string.hpp | 2 | ||||
-rw-r--r-- | std/target_os.hpp | 6 |
4 files changed, 9 insertions, 3 deletions
diff --git a/std/iostream.hpp b/std/iostream.hpp index 1fe50b369f..7e56b9e9b2 100644 --- a/std/iostream.hpp +++ b/std/iostream.hpp @@ -16,9 +16,11 @@ using std::cin; using std::cout; using std::cerr; +#ifndef OMIM_OS_ANDROID using std::wcin; using std::wcout; using std::wcerr; +#endif #endif // OMIM_OS_BADA using std::endl; diff --git a/std/stdint.hpp b/std/stdint.hpp index d679ba5e7f..7f444a3ceb 100644 --- a/std/stdint.hpp +++ b/std/stdint.hpp @@ -16,7 +16,7 @@ typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; -#elif defined(OMIM_OS_BADA) +#elif defined(OMIM_OS_BADA) || defined(OMIM_OS_ANDROID) #include <stdint.h> #else diff --git a/std/string.hpp b/std/string.hpp index 675fee5fe3..0cdd70eda6 100644 --- a/std/string.hpp +++ b/std/string.hpp @@ -12,7 +12,7 @@ using std::basic_string; using std::string; using std::getline; -#ifdef OMIM_OS_BADA +#if defined(OMIM_OS_BADA) || defined(OMIM_OS_ANDROID) typedef std::basic_string<wchar_t> wstring; #else using std::wstring; diff --git a/std/target_os.hpp b/std/target_os.hpp index 8830773ade..0587a78f09 100644 --- a/std/target_os.hpp +++ b/std/target_os.hpp @@ -1,6 +1,10 @@ #pragma once -#if defined(_BADA_SIMULATOR) || defined(_BADA_DEVICE) +#if defined(ANDROID) + #define OMIM_OS_ANDROID + #define OMIM_OS_NAME "android" + +#elif defined(_BADA_SIMULATOR) || defined(_BADA_DEVICE) #define OMIM_OS_BADA #define OMIM_OS_NAME "bada" |