Skip to content

Commit 9a4dec9

Browse files
committed
xrCore: fix build after merge
1 parent cf5c947 commit 9a4dec9

File tree

6 files changed

+21
-377
lines changed

6 files changed

+21
-377
lines changed

src/xrCore/LocatorAPI.h

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22

33
#pragma warning(push)
44
#pragma warning(disable : 4995)
5-
#ifdef WINDOWS
5+
#if defined(WINDOWS)
66
#include <io.h>
7-
#else // WINDOWS
8-
#include <inttypes.h>
9-
#include <sys/types.h> /* To get time_t. */
10-
11-
#define _A_HIDDEN 0x02
12-
#define _A_SUBDIR 0x10
13-
14-
#ifndef FILENAME_MAX
15-
#define FILENAME_MAX (260)
167
#endif
8+
#pragma warning(pop)
9+
#include "Common/Util.hpp"
10+
#include "LocatorAPI_defs.h"
11+
//#include "xrCore/Threading/Lock.hpp"
12+
#include "xrCommon/xr_map.h"
13+
#include "xrCommon/predicates.h"
14+
#include "Common/Noncopyable.hpp"
15+
16+
#if defined(LINUX)
17+
#include <stdint.h>
18+
#define _A_HIDDEN 0x02
19+
#define _A_SUBDIR 0x00000010
1720

1821
#ifdef XR_X64
1922
#define _finddata_t _finddata64i32_t
@@ -45,15 +48,8 @@ struct _finddata32_t
4548
char name[FILENAME_MAX];
4649
};
4750

48-
#endif // WINDOWS
49-
#pragma warning(pop)
50-
51-
#include "Common/Util.hpp"
52-
#include "LocatorAPI_defs.h"
53-
//#include "xrCore/Threading/Lock.hpp"
54-
#include "xrCommon/xr_map.h"
55-
#include "xrCommon/predicates.h"
56-
#include "Common/Noncopyable.hpp"
51+
#define _finddata_t _finddata64i32_t
52+
#endif
5753

5854
class CStreamReader;
5955
class Lock;

src/xrCore/Threading/Event.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
class XRCORE_API Event
55
{
6-
#if defined(WINDOWS)
76
void* handle;
8-
#elif defined(LINUX)
7+
#if defined(LINUX)
98
struct EventHandle
109
{
1110
pthread_mutex_t mutex;
1211
pthread_cond_t cond;
1312
bool signaled;
1413
};
15-
pthread_mutex_t handle;
1614

1715
private:
1816
EventHandle m_id;

src/xrCore/XML/XMLDocument.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
#define PUGIXML_NO_XPATH
99
#define PUGIXML_HAS_LONG_LONG
1010
#include "pugixml.hpp"
11+
#ifdef DEBUG // debug & mixed
1112
#include "xrCommon/xr_vector.h"
13+
#endif
1214
#include "xrCore/xrstring.h"
1315

1416
static constexpr pcstr CONFIG_PATH = "$game_config$";

src/xrCore/_obb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ struct _obb
120120
Tvector kDirection;
121121
kDirection.set(dir.dotproduct(m_rotate.i), dir.dotproduct(m_rotate.j), dir.dotproduct(m_rotate.k));
122122

123-
T fT0 = 0.0f, fT1 = type_max(T);
123+
T fT0 = 0.0f, fT1 = type_max<T>;
124124
if (intersect(kOrigin, kDirection, m_halfsize, fT0, fT1))
125125
{
126126
bool bPick = false;

0 commit comments

Comments
 (0)