Skip to content

Commit

Permalink
Add header for compiler-specific stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 17, 2016
1 parent 355c8b6 commit 5a49463
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Common/Common.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="Compiler.inl" />
<ClInclude Include="Config.hpp" />
<ClInclude Include="face_smoth_flags.h" />
<ClInclude Include="FSMacros.hpp" />
Expand Down
3 changes: 3 additions & 0 deletions src/Common/Common.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<ClInclude Include="PlatformWindows.inl">
<Filter>Platform</Filter>
</ClInclude>
<ClInclude Include="Compiler.inl">
<Filter>Platform</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Filter Include="NvMender2003">
Expand Down
3 changes: 3 additions & 0 deletions src/Common/Compiler.inl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#if !defined(__GNUC__) && !defined(_MSC_VER)
#error Unsupported compiler
#endif
2 changes: 2 additions & 0 deletions src/Common/Platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
Expand Down

0 comments on commit 5a49463

Please sign in to comment.