From 3531b09794b8c03530616f6e7a1ba18c4fe4af30 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 11 Nov 2015 17:00:25 +1100 Subject: [PATCH] platform: add platform suffix definitions --- platform.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform.hpp b/platform.hpp index d6a080b8..92df2c1a 100644 --- a/platform.hpp +++ b/platform.hpp @@ -11,7 +11,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * Copyright 2012 Danny Robson + * Copyright 2012-2015 Danny Robson */ #ifndef __UTIL_PLATFORM_HPP @@ -19,12 +19,16 @@ #if defined(__ANDROID__) #define PLATFORM_ANDROID + #define PLATFORM_SUFFIX "android" #elif defined(__linux__) || defined (__linux) #define PLATFORM_LINUX + #define PLATFORM_SUFFIX "linux" #elif defined(__WIN32) || defined (_WIN32) #define PLATFORM_WIN32 + #define PLATFORM_SUFFIX "win32" #else #error "Unknown platform" + #define PLATFORM_SUFFIX "unknown" #endif // Clang needs to be checked before GCC as it pretends to be GCC