From d3b67bde8ab9f9c0e12f64db2fe6bbb6158e62d0 Mon Sep 17 00:00:00 2001 From: Nick Hope Date: Tue, 31 Jul 2018 21:16:47 +0100 Subject: [PATCH] fixed: windows mono compile (#20598) tidy: formatting. (cherry picked from commit 24b4694313211d5ddf65c21bdb209d2365149ee8) --- modules/mono/utils/thread_local.cpp | 4 ++-- modules/mono/utils/thread_local.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/mono/utils/thread_local.cpp b/modules/mono/utils/thread_local.cpp index e99098f999..be15ce7d36 100644 --- a/modules/mono/utils/thread_local.cpp +++ b/modules/mono/utils/thread_local.cpp @@ -69,7 +69,7 @@ struct ThreadLocalStorage::Impl { #define _CALLBACK_FUNC_ #endif - Impl(void _CALLBACK_FUNC_ (*p_destr_callback_func)(void *)) { + Impl(void (_CALLBACK_FUNC_ *p_destr_callback_func)(void *)) { #ifdef WINDOWS_ENABLED dwFlsIndex = FlsAlloc(p_destr_callback_func); 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); } -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)); } diff --git a/modules/mono/utils/thread_local.h b/modules/mono/utils/thread_local.h index 3e326b21e9..7cda73ec58 100644 --- a/modules/mono/utils/thread_local.h +++ b/modules/mono/utils/thread_local.h @@ -76,7 +76,7 @@ struct ThreadLocalStorage { void *get_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(); private: