platform: detect android platform

This commit is contained in:
Danny Robson 2015-08-10 15:44:39 +10:00
parent a4127441a6
commit e9c68bd25d

View File

@ -17,7 +17,9 @@
#ifndef __UTIL_PLATFORM_HPP #ifndef __UTIL_PLATFORM_HPP
#define __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 #define PLATFORM_LINUX
#elif defined(__WIN32) || defined (_WIN32) #elif defined(__WIN32) || defined (_WIN32)
#define PLATFORM_WIN32 #define PLATFORM_WIN32