Skip to content

Commit 5a49463

Browse files
author
nitrocaster
committed
Add header for compiler-specific stuff.
1 parent 355c8b6 commit 5a49463

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

src/Common/Common.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
</Link>
108108
</ItemDefinitionGroup>
109109
<ItemGroup>
110+
<ClInclude Include="Compiler.inl" />
110111
<ClInclude Include="Config.hpp" />
111112
<ClInclude Include="face_smoth_flags.h" />
112113
<ClInclude Include="FSMacros.hpp" />

src/Common/Common.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
<ClInclude Include="PlatformWindows.inl">
4040
<Filter>Platform</Filter>
4141
</ClInclude>
42+
<ClInclude Include="Compiler.inl">
43+
<Filter>Platform</Filter>
44+
</ClInclude>
4245
</ItemGroup>
4346
<ItemGroup>
4447
<Filter Include="NvMender2003">

src/Common/Compiler.inl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#if !defined(__GNUC__) && !defined(_MSC_VER)
2+
#error Unsupported compiler
3+
#endif

src/Common/Platform.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#define XR_X86
1616
#endif
1717

18+
#include "Common/Compiler.inl"
19+
1820
#ifdef __GNUC__
1921
#define XR_EXPORT __attribute__ ((visibility("default")))
2022
#define XR_IMPORT __attribute__ ((visibility("default")))

0 commit comments

Comments
 (0)