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")))