forked from teamnwah/openmw-tes3coop
[Server] Fix GCC 8 build
This commit is contained in:
parent
30eaabb7ce
commit
9d58b2459d
1 changed files with 2 additions and 6 deletions
|
@ -103,13 +103,9 @@ struct CallbackIdentity
|
||||||
struct ScriptFunctionPointer : public ScriptIdentity
|
struct ScriptFunctionPointer : public ScriptIdentity
|
||||||
{
|
{
|
||||||
void *addr;
|
void *addr;
|
||||||
#if (!defined(__clang__) && defined(__GNUC__))
|
|
||||||
template<typename R, typename... Types>
|
template<typename R, typename... Types>
|
||||||
constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr(reinterpret_cast<void*>(addr)) {}
|
constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr((void*)(addr)) {}
|
||||||
#else
|
|
||||||
template<typename R, typename... Types>
|
|
||||||
constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr(addr) {}
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ScriptFunctionData
|
struct ScriptFunctionData
|
||||||
|
|
Loading…
Reference in a new issue