Skip to content

Commit e56f2e8

Browse files
committed
xrQSlim: added to linux build
1 parent dac3979 commit e56f2e8

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

src/utils/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
add_subdirectory(xrLCUtil)
2+
add_subdirectory(xrQSlim)

src/utils/xrQSlim/src/MxBlock.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
#ifndef MXBLOCK_INCLUDED // -*- C++ -*-
2-
#define MXBLOCK_INCLUDED
3-
#if !defined(__GNUC__)
41
#pragma once
5-
#endif
62

73
/************************************************************************
84
@@ -124,6 +120,3 @@ class MxBlock
124120
iterator end() { return begin() + size(); }
125121
const_iterator end() const { return begin() + size(); }
126122
};
127-
128-
// MXBLOCK_INCLUDED
129-
#endif

src/utils/xrQSlim/src/MxDynBlock.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
#ifndef MXDYNBLOCK_INCLUDED // -*- C++ -*-
2-
#define MXDYNBLOCK_INCLUDED
3-
#if !defined(__GNUC__)
41
#pragma once
5-
#endif
62

73
/************************************************************************
84
@@ -50,7 +46,9 @@ class MxDynBlock : public MxBlock<T>
5046
T& drop() { return (*this)[--fill]; }
5147
void drop(int d) { fill -= d; }
5248
void remove(int i) { (*this)[i] = (*this)[--fill]; }
49+
#if defined(WINDOWS) // Не буду удалять потому как не понимаю как оно собирается на винде
5350
void remove_inorder(int i) { Memory.mem_move(&(*this)[i], &(*this)[i + 1], (--fill - i) * sizeof(T)); }
51+
#endif
5452
// Restricted STL-like interface for interoperability with
5553
// STL-based code. Overrides select MxBlock<> definitions and
5654
// introduces some additional std::vector-like methods.
@@ -80,6 +78,3 @@ inline bool varray_find(const MxDynBlock<T>& A, const T& t, unsigned int* index
8078
}
8179
return false;
8280
}
83-
84-
// MXDYNBLOCK_INCLUDED
85-
#endif

src/xrCore/xrMemory.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@ class XRCORE_API xrMemory
3434

3535
extern XRCORE_API xrMemory Memory;
3636

37-
#if defined(WINDOWS)
3837
#undef ZeroMemory
3938
#undef CopyMemory
4039
#undef FillMemory
4140
#define ZeroMemory(a, b) memset(a, 0, b)
4241
#define CopyMemory(a, b, c) memcpy(a, b, c)
4342
#define FillMemory(a, b, c) memset(a, c, b)
44-
#endif
4543

4644
/*
4745
Начиная со стандарта C++11 нет необходимости объявлять все формы операторов new и delete.

0 commit comments

Comments
 (0)