From 5a4946360ac7375eddce2ab3b5c15653b73126d9 Mon Sep 17 00:00:00 2001 From: nitrocaster Date: Sun, 17 Jan 2016 15:28:14 +0300 Subject: [PATCH] Add header for compiler-specific stuff. --- src/Common/Common.vcxproj | 1 + src/Common/Common.vcxproj.filters | 3 +++ src/Common/Compiler.inl | 3 +++ src/Common/Platform.hpp | 2 ++ 4 files changed, 9 insertions(+) create mode 100644 src/Common/Compiler.inl diff --git a/src/Common/Common.vcxproj b/src/Common/Common.vcxproj index 8d0ad30f38c..2ef7bc8ee73 100644 --- a/src/Common/Common.vcxproj +++ b/src/Common/Common.vcxproj @@ -107,6 +107,7 @@ + diff --git a/src/Common/Common.vcxproj.filters b/src/Common/Common.vcxproj.filters index bfe31483d70..d53a9fcf649 100644 --- a/src/Common/Common.vcxproj.filters +++ b/src/Common/Common.vcxproj.filters @@ -39,6 +39,9 @@ Platform + + Platform + diff --git a/src/Common/Compiler.inl b/src/Common/Compiler.inl new file mode 100644 index 00000000000..e2c9943b864 --- /dev/null +++ b/src/Common/Compiler.inl @@ -0,0 +1,3 @@ +#if !defined(__GNUC__) && !defined(_MSC_VER) +#error Unsupported compiler +#endif diff --git a/src/Common/Platform.hpp b/src/Common/Platform.hpp index 1818cc783c6..07d865f4f75 100644 --- a/src/Common/Platform.hpp +++ b/src/Common/Platform.hpp @@ -15,6 +15,8 @@ #define XR_X86 #endif +#include "Common/Compiler.inl" + #ifdef __GNUC__ #define XR_EXPORT __attribute__ ((visibility("default"))) #define XR_IMPORT __attribute__ ((visibility("default")))