Skip to content

Commit

Permalink
Move ImportExportMacros.inl into Compiler.inl
Browse files Browse the repository at this point in the history
Remove include guard for inlining_macros.h
  • Loading branch information
Xottab-DUTY committed Nov 15, 2017
1 parent dd2616a commit 7be8e73
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/Common/Common.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@
<ClInclude Include="PlatformLinux.inl" />
<ClInclude Include="PlatformWindows.inl" />
<ClInclude Include="Util.hpp" />
<ClInclude Include="ImportExportMacros.inl" />
<ClInclude Include="_d3d_extensions.h" />
</ItemGroup>
<ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Common/Common.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@
<ClInclude Include="..\xrCommon\xr_deque.h">
<Filter>xrCommon</Filter>
</ClInclude>
<ClInclude Include="ImportExportMacros.inl">
<Filter>Platform</Filter>
</ClInclude>
<ClInclude Include="Common.hpp" />
</ItemGroup>
<ItemGroup>
Expand Down
9 changes: 8 additions & 1 deletion src/Common/Compiler.inl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
#include <intrin.h> // for __debugbreak
#endif

#include "Common/ImportExportMacros.inl"
#if defined(__GNUC__)
#define XR_EXPORT __attribute__ ((visibility("default")))
#define XR_IMPORT __attribute__ ((visibility("default")))
#elif defined(_MSC_VER)
#define XR_EXPORT __declspec(dllexport)
#define XR_IMPORT __declspec(dllimport)
#endif

#include "xrCommon/inlining_macros.h"

#if defined(__GNUC__)
Expand Down
9 changes: 0 additions & 9 deletions src/Common/ImportExportMacros.inl

This file was deleted.

4 changes: 0 additions & 4 deletions src/xrCommon/inlining_macros.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#pragma once
#ifndef INLINING_MACROS_H
#define INLINING_MACROS_H

#if defined(__GNUC__)
#define NO_INLINE __attribute__((noinline))
Expand All @@ -19,5 +17,3 @@
#define IC inline
#define ICF FORCE_INLINE
#define ICN NO_INLINE

#endif

0 comments on commit 7be8e73

Please sign in to comment.