Skip to content

Commit

Permalink
added case DYNLINK_NO_EXPORT in dynlink_impl_symbol_win32.h
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanKrMahato committed Nov 27, 2024
1 parent 7672f7d commit cb5af44
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions source/dynlink/include/dynlink/dynlink_impl_symbol_win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit cb5af44

Please sign in to comment.