Merge pull request #20644 from NickToony/master
Fixed Windows mono compile
This commit is contained in:
commit
3fa2404a79
2 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ struct ThreadLocalStorage::Impl {
|
||||||
#define _CALLBACK_FUNC_
|
#define _CALLBACK_FUNC_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Impl(void _CALLBACK_FUNC_ (*p_destr_callback_func)(void *)) {
|
Impl(void (_CALLBACK_FUNC_ *p_destr_callback_func)(void *)) {
|
||||||
#ifdef WINDOWS_ENABLED
|
#ifdef WINDOWS_ENABLED
|
||||||
dwFlsIndex = FlsAlloc(p_destr_callback_func);
|
dwFlsIndex = FlsAlloc(p_destr_callback_func);
|
||||||
ERR_FAIL_COND(dwFlsIndex == FLS_OUT_OF_INDEXES);
|
ERR_FAIL_COND(dwFlsIndex == FLS_OUT_OF_INDEXES);
|
||||||
|
@ -95,7 +95,7 @@ void ThreadLocalStorage::set_value(void *p_value) const {
|
||||||
pimpl->set_value(p_value);
|
pimpl->set_value(p_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThreadLocalStorage::alloc(void _CALLBACK_FUNC_ (*p_destr_callback)(void *)) {
|
void ThreadLocalStorage::alloc(void (_CALLBACK_FUNC_ *p_destr_callback)(void *)) {
|
||||||
pimpl = memnew(ThreadLocalStorage::Impl(p_destr_callback));
|
pimpl = memnew(ThreadLocalStorage::Impl(p_destr_callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ struct ThreadLocalStorage {
|
||||||
void *get_value() const;
|
void *get_value() const;
|
||||||
void set_value(void *p_value) const;
|
void set_value(void *p_value) const;
|
||||||
|
|
||||||
void alloc(void _CALLBACK_FUNC_ (*p_dest_callback)(void *));
|
void alloc(void (_CALLBACK_FUNC_ *p_dest_callback)(void *));
|
||||||
void free();
|
void free();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue