From a9e4d6d908da0a67d0b9fa0afec58b2ae2266174 Mon Sep 17 00:00:00 2001 From: mafiesto4 Date: Sun, 17 Jan 2021 23:35:47 +0100 Subject: [PATCH] Fix exposing Mono API when using dynamic linking --- Source/ThirdParty/mono-2.0/mono/utils/mono-publib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/ThirdParty/mono-2.0/mono/utils/mono-publib.h b/Source/ThirdParty/mono-2.0/mono/utils/mono-publib.h index 83933c9c2..6e956a928 100644 --- a/Source/ThirdParty/mono-2.0/mono/utils/mono-publib.h +++ b/Source/ThirdParty/mono-2.0/mono/utils/mono-publib.h @@ -11,9 +11,11 @@ * directives where needed. */ -// Override Mono API linkage with FlaxEngine API +// Override Mono API linkage with FlaxEngine API (for builds with static-linking) #include "FlaxEngine.Gen.h" +#if !USE_MONO_DYNAMIC_LIB #define MONO_API_NO_EXTERN_C FLAXENGINE_API +#endif #ifdef __cplusplus #define MONO_BEGIN_DECLS extern "C" {