mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
include: Reintroduce hidden visibility for GUID definitions.
This was dropped by d27fee64ab51c60078215f461a797edd32bc8871, presumably because the default visibility was switched to "hidden". However, this is part of a public header, and external users may not share our symbol visibility defaults. Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
062f0a25d3
commit
9a2d9d4f5c
@ -127,18 +127,18 @@ typedef GUID IID;
|
|||||||
# ifdef INITGUID
|
# ifdef INITGUID
|
||||||
# ifndef __cplusplus
|
# ifndef __cplusplus
|
||||||
# define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
# define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
||||||
const GUID name; \
|
const GUID name DECLSPEC_HIDDEN; \
|
||||||
const GUID name = \
|
const GUID name = \
|
||||||
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 }}
|
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 }}
|
||||||
# else
|
# else
|
||||||
# define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
# define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
||||||
EXTERN_C const GUID name; \
|
EXTERN_C const GUID name DECLSPEC_HIDDEN; \
|
||||||
EXTERN_C const GUID name = \
|
EXTERN_C const GUID name = \
|
||||||
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 }}
|
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 }}
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
# define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
||||||
EXTERN_C const GUID name;
|
EXTERN_C const GUID name DECLSPEC_HIDDEN;
|
||||||
# endif /* INITGUID */
|
# endif /* INITGUID */
|
||||||
|
|
||||||
/* __uuidof emulation */
|
/* __uuidof emulation */
|
||||||
@ -239,6 +239,17 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
|
|||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
|
|
||||||
|
/* 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 */
|
/* Define min() & max() macros */
|
||||||
#ifndef NOMINMAX
|
#ifndef NOMINMAX
|
||||||
# ifndef min
|
# ifndef min
|
||||||
|
Loading…
x
Reference in New Issue
Block a user