Fix exposing Mono API when using dynamic linking

This commit is contained in:
mafiesto4
2021-01-17 23:35:47 +01:00
committed by Wojtek Figat
parent 5f7f53304d
commit a9e4d6d908

View File

@@ -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" {