Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2011-01-27 06:49:11 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:11:01 +0300
commitac7721a6ff8b1a630b0cb1a52185ef1af281644d (patch)
tree3f352817393519e8b6486a481e555884dd3b3072 /std
parentcdc8e9d22916cefa4dbf3e090ceff57393500507 (diff)
Closes #93
Send OS/version/unique id in http user agent for each download
Diffstat (limited to 'std')
-rw-r--r--std/target_os.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/std/target_os.hpp b/std/target_os.hpp
index fec99a4eb7..b7b282c4f0 100644
--- a/std/target_os.hpp
+++ b/std/target_os.hpp
@@ -2,11 +2,13 @@
#if defined(_BADA_SIMULATOR) || defined(_BADA_DEVICE)
#define OMIM_OS_BADA
+ #define OMIM_OS_NAME "Bada"
#elif defined(__APPLE__)
#include <TargetConditionals.h>
#if (TARGET_OS_IPHONE > 0)
#define OMIM_OS_IPHONE
+ #define OMIM_OS_NAME "iOS"
#if (TARGET_IPHONE_SIMULATOR > 0)
#define OMIM_OS_IPHONE_SIMULATOR
#else
@@ -14,6 +16,7 @@
#endif
#else
#define OMIM_OS_MAC
+ #define OMIM_OS_NAME "MacOS"
#endif
#elif defined(_WIN32)
@@ -21,9 +24,12 @@
#ifdef __MINGW32__
#define OMIM_OS_WINDOWS_MINGW
+ #define OMIM_OS_NAME "MinGW"
#else
#define OMIM_OS_WINDOWS_NATIVE
+ #define OMIM_OS_NAME "Win"
#endif
#else
#define OMIM_OS_LINUX
+ #define OMIM_OS_NAME "Linux"
#endif