From e9c68bd25d87844f1b1454e7fcfb9fd401bb73ff Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 10 Aug 2015 15:44:39 +1000 Subject: [PATCH] platform: detect android platform --- platform.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform.hpp b/platform.hpp index c9ce06d0..d6a080b8 100644 --- a/platform.hpp +++ b/platform.hpp @@ -17,7 +17,9 @@ #ifndef __UTIL_PLATFORM_HPP #define __UTIL_PLATFORM_HPP -#if defined(__linux__) || defined (__linux) +#if defined(__ANDROID__) + #define PLATFORM_ANDROID +#elif defined(__linux__) || defined (__linux) #define PLATFORM_LINUX #elif defined(__WIN32) || defined (_WIN32) #define PLATFORM_WIN32