Skip to content

Commit 62a8b72

Browse files
Merge pull request #486 from pollend/bugfix/address-compiling-problems-linux
bugfix: address compiling problems on linux
2 parents 6b0389a + 9602bd0 commit 62a8b72

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

include/nbl/system/IAsyncQueueDispatcher.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class IAsyncQueueDispatcherBase
228228
inline ~storage_lock_t()
229229
{
230230
if (m_future)
231-
m_future->state.exchangeNotify<true>(state_enum::READY,state_enum::LOCKED);
231+
m_future->state.template exchangeNotify<true>(state_enum::READY,state_enum::LOCKED);
232232
}
233233

234234
//!
@@ -256,7 +256,7 @@ class IAsyncQueueDispatcherBase
256256
{
257257
assert(m_future);
258258
m_future->destruct();
259-
m_future->state.exchangeNotify<true>(state_enum::INITIAL,state_enum::LOCKED);
259+
m_future->state.template exchangeNotify<true>(state_enum::INITIAL,state_enum::LOCKED);
260260
m_future = nullptr;
261261
}
262262
//! Can only be called once!
@@ -319,7 +319,7 @@ class IAsyncQueueDispatcherBase
319319
request.exchange(nullptr)->cancel();
320320

321321
// after doing everything, we can mark ourselves as cleaned up
322-
base_t::state.exchangeNotify<false>(base_t::STATE::INITIAL, base_t::STATE::EXECUTING);
322+
base_t::state.template exchangeNotify<false>(base_t::STATE::INITIAL, base_t::STATE::EXECUTING);
323323
return true;
324324
}
325325
// we're here because either:

src/nbl/system/DefaultFuncPtrLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using namespace nbl::system;
1616
#if defined(_NBL_WINDOWS_API_)
1717
#define LIB reinterpret_cast<HMODULE&>(lib)
1818
#elif defined(_NBL_POSIX_API_)
19-
#define lib
19+
#define LIB lib
2020
#endif
2121

2222
DefaultFuncPtrLoader::DefaultFuncPtrLoader(const char* name) : DefaultFuncPtrLoader()

src/nbl/video/IAPIConnection.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
#include "nbl/video/IPhysicalDevice.h"
44
#include "nbl/video/utilities/renderdoc.h"
55

6+
#if defined(_NBL_POSIX_API_)
7+
#include <dlfcn.h>
8+
#endif
9+
610
namespace nbl::video
711
{
812

0 commit comments

Comments
 (0)