Skip to content

Commit 686f5db

Browse files
authored
Merge pull request #250 from q4a/linux-merge
Continue Linux port
2 parents 523f754 + a7f2240 commit 686f5db

File tree

1,740 files changed

+7986
-5590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,740 files changed

+7986
-5590
lines changed

Externals/openal/include/openal/alc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,10 @@ typedef void (ALC_APIENTRY *LPALCCAPTURESAMPLES)( ALCdevice *device, A
272272
}
273273
#endif
274274

275+
#if defined(_WIN32) && !defined(_XBOX)
275276
typedef void __cdecl log_fn_ptr_type(char*);
276277
extern ALC_API log_fn_ptr_type* pLog ;
277-
278+
#endif
278279
void AlLog(char* format, ...);
279280

280281
#endif /* AL_ALC_H */

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ and work on the source code.
1616

1717
Changelist is available in [wiki](https://github.com/OpenXRay/xray-16/wiki/Changes).
1818

19-
Build instructions: [doc/howto/build.txt](doc/howto/build.txt)
19+
Build instructions (Windows): [doc/howto/build.txt](doc/howto/build.txt)
20+
21+
Build instructions (Linux): [doc/howto/build-linux.txt](doc/howto/build-linux.txt)
2022

2123
If you find a bug or have an enhancement request, file an [Issue](https://github.com/openxray/xray-16/issues).
2224

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ deploy:
6868
release: OpenXRay (build $(appveyor_build_version))
6969
description: $(APPVEYOR_REPO_COMMIT_MESSAGE)
7070
auth_token:
71-
secure: kGVniXDR926BfVcA97y25BzALbijvgboBsozZzY9yc8RPz15Q4YG474h7vl14/J1
71+
secure: EwMP7ob9Q7cE1EvW72ybDSYjbD44IQRDFhbCQcdOuBSSz9PbO/Pq2ZUNuMqPuvsV
7272
artifact:
7373
OpenXRay.Dx86.7z, OpenXRay.Dx64.7z, OpenXRay.Mx86.7z, OpenXRay.Mx64.7z, OpenXRay.Rx86.7z, OpenXRay.Rx64.7z,
7474
Symbols.Dx86.7z, Symbols.Dx64.7z, Symbols.Mx86.7z, Symbols.Mx64.7z, Symbols.Rx86.7z, Symbols.Rx64.7z

sdk/include/loki/HierarchyGenerators.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define HIERARCHYGENERATORS_INC_
3030

3131
#include "Typelist.h"
32-
#include "TypeTraits.h"
32+
#include "TypeManip.h"
3333
#include "EmptyType.h"
3434

3535
namespace Loki
@@ -158,9 +158,9 @@ namespace Loki
158158
>
159159
::Result TList;
160160

161-
template <typename T> struct Rebind
161+
template <typename U> struct Rebind
162162
{
163-
typedef Unit<T> Result;
163+
typedef Unit<U> Result;
164164
};
165165
};
166166

@@ -228,7 +228,7 @@ namespace Loki
228228
typedef typename TL::TypeAt<typename H::TList, i>::Result ElementType;
229229
typedef typename H::template Rebind<ElementType>::Result UnitType;
230230

231-
enum { isConst = TypeTraits<H>::isConst };
231+
static constexpr bool isConst = std::is_const_v<H>;
232232

233233
typedef typename Select
234234
<
@@ -273,7 +273,7 @@ namespace Loki
273273
typedef typename H::TList::Head ElementType;
274274
typedef typename H::template Rebind<ElementType>::Result UnitType;
275275

276-
enum { isConst = TypeTraits<H>::isConst };
276+
static constexpr bool isConst = std::is_const_v<H>;
277277

278278
typedef typename Select
279279
<

sdk/include/loki/TypeManip.h

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,7 @@ namespace Loki
6060
template <bool flag, typename T, typename U>
6161
struct Select
6262
{
63-
private:
64-
template<bool>
65-
struct In
66-
{ typedef T Result; };
67-
68-
template<>
69-
struct In<false>
70-
{ typedef U Result; };
71-
72-
public:
73-
typedef typename In<flag>::Result Result;
63+
using Result = std::conditional_t<flag, T, U>;
7464
};
7565

7666

@@ -84,20 +74,8 @@ namespace Loki
8474
////////////////////////////////////////////////////////////////////////////////
8575

8676
template <typename T, typename U>
87-
struct IsSameType
88-
{
89-
private:
90-
template<typename>
91-
struct In
92-
{ enum { value = false }; };
93-
94-
template<>
95-
struct In<T>
96-
{ enum { value = true }; };
97-
98-
public:
99-
enum { value = In<U>::value };
100-
};
77+
struct IsSameType : std::is_same<T, U>
78+
{};
10179

10280
////////////////////////////////////////////////////////////////////////////////
10381
// Helper types Small and Big - guarantee that sizeof(Small) < sizeof(Big)

0 commit comments

Comments
 (0)