Skip to content

Commit 966a40b

Browse files
committed
LINUX, X86: fix x86 linux building
1 parent a66bfbf commit 966a40b

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/xrCommon/xr_unordered_map.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#pragma once
2-
//#include <unordered_map>
3-
#include "unordered_map.hpp"
2+
#include <unordered_map>
3+
//#include "unordered_map.hpp"
44
#include "xrCore/xrMemory.h"
55

66
template <typename K, class V, class Hasher = std::hash<K>, class Traits = std::equal_to<K>,
77
typename allocator = tbb::tbb_allocator<std::pair<const K, V>>>
8-
//using xr_unordered_map = std::unordered_map<K, V, Hasher, Traits, allocator>;
9-
using xr_unordered_map = ska::unordered_map<K, V, Hasher, Traits, allocator>;
8+
using xr_unordered_map = std::unordered_map<K, V, Hasher, Traits, allocator>;
9+
//using xr_unordered_map = ska::unordered_map<K, V, Hasher, Traits, allocator>;

src/xrCore/Math/MathUtil.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "Layers/xrRender/light.h"
1414
#endif
1515
#include "PLC_SSE.hpp"
16-
#ifdef XR_X86
16+
#if defined(WINDOWS) and defined(XR_X86)
1717
#include "SkinXW_SSE.hpp"
1818
#else
1919
#include "SkinXW_CPP.hpp"
@@ -39,7 +39,7 @@ void Initialize()
3939
static bool initialized = false;
4040
if (initialized)
4141
return;
42-
#ifdef XR_X86
42+
#if defined(WINDOWS) and defined(XR_X86)
4343
Skin1W = Skin1W_SSE;
4444
Skin2W = Skin2W_SSE;
4545
Skin3W = Skin3W_SSE;

src/xrCore/Math/SkinXW_SSE.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace XRay
1212
{
1313
namespace Math
1414
{
15-
#ifdef XR_X86
15+
#if defined(WINDOWS) and defined(XR_X86)
1616
#define transform_dir(idx, res, SX, SY, SZ, T1) \
1717
\
1818
__asm movzx eax, \

src/xrCore/Math/SkinXW_SSE.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace XRay
1212
{
1313
namespace Math
1414
{
15-
#ifdef XR_X86
15+
#if defined(WINDOWS) and defined(XR_X86)
1616
void Skin1W_SSE(vertRender* D, vertBoned1W* S, u32 vCount, CBoneInstance* Bones);
1717
void Skin2W_SSE(vertRender* D, vertBoned2W* S, u32 vCount, CBoneInstance* Bones);
1818
void Skin3W_SSE(vertRender* D, vertBoned3W* S, u32 vCount, CBoneInstance* Bones);

src/xrCore/xrDebug.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static BOOL bException = FALSE;
6767
#error CPU architecture is not supported.
6868
#endif
6969

70-
namespace
70+
/*namespace
7171
{
7272
ICN void* GetInstructionPtr()
7373
{
@@ -92,7 +92,7 @@ ICN void* GetInstructionPtr()
9292
#endif
9393
#endif
9494
}
95-
}
95+
}*/
9696

9797
// XXX: Probably rename this to AssertionResult?
9898
enum MessageBoxResult

0 commit comments

Comments
 (0)