From cb5af449cbf80c95c77cf22995d9410491a93bb6 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Mahato Date: Wed, 27 Nov 2024 20:45:03 +0530 Subject: [PATCH] added case DYNLINK_NO_EXPORT in dynlink_impl_symbol_win32.h --- .../dynlink/dynlink_impl_symbol_win32.h | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/source/dynlink/include/dynlink/dynlink_impl_symbol_win32.h b/source/dynlink/include/dynlink/dynlink_impl_symbol_win32.h index 008cba096..63f5a4cbd 100644 --- a/source/dynlink/include/dynlink/dynlink_impl_symbol_win32.h +++ b/source/dynlink/include/dynlink/dynlink_impl_symbol_win32.h @@ -32,16 +32,27 @@ extern "C" { #endif /* -- Definitions -- */ +#if defined(__MING32__) || defined(__MINGW64__) + #define DYNLINK_SYMBOL_PREFIX \ + dynlink_symbol_ -#define DYNLINK_SYMBOL_PREFIX + /* -- Macros -- */ -/* -- Macros -- */ + #define DYNLINK_SYMBOL_EXPORT(name) \ + DYNLINK_NO_EXPORT struct dynlink_symbol_addr_win32_type DYNLINK_SYMBOL_NAME(name) = { \ + (dynlink_symbol_addr_win32_impl)&name \ + } +#else + #define DYNLINK_SYMBOL_PREFIX + + /* -- Macros -- */ -#define DYNLINK_SYMBOL_EXPORT(name) \ - DYNLINK_NO_EXPORT struct \ - { \ - char name; \ - } PREPROCESSOR_CONCAT(dynlink_no_export_, name) + #define DYNLINK_SYMBOL_EXPORT(name) \ + DYNLINK_NO_EXPORT struct \ + { \ + char name; \ + } PREPROCESSOR_CONCAT(dynlink_no_export_, name) +#endif #if defined(__MINGW32__) || defined(__MINGW64__) #define DYNLINK_SYMBOL_GET(name) \