mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
libs/vkd3d: Make vkd3d debug compatible with MinGW headers.
This commit is contained in:
@@ -139,7 +139,6 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
|
||||
|
||||
# ifdef __GNUC__
|
||||
# define DECLSPEC_SELECTANY __attribute__((weak))
|
||||
# define DECLSPEC_HIDDEN __attribute__((visibility("hidden")))
|
||||
# endif
|
||||
|
||||
/* Macros for COM interfaces */
|
||||
@@ -190,6 +189,17 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
|
||||
# endif /* NONAMELESSUNION */
|
||||
#endif /* __C89_NAMELESS */
|
||||
|
||||
/* Define DECLSPEC_HIDDEN */
|
||||
#ifndef DECLSPEC_HIDDEN
|
||||
# if defined(__MINGW32__)
|
||||
# define DECLSPEC_HIDDEN
|
||||
# elif defined(__GNUC__)
|
||||
# define DECLSPEC_HIDDEN __attribute__((visibility("hidden")))
|
||||
# else
|
||||
# define DECLSPEC_HIDDEN
|
||||
# endif
|
||||
#endif /* DECLSPEC_HIDDEN */
|
||||
|
||||
/* Define min() & max() macros */
|
||||
#ifndef min
|
||||
# define min(a, b) (((a) <= (b)) ? (a) : (b))
|
||||
|
Reference in New Issue
Block a user