include: Define DECLSPEC_HIDDEN in guiddef.h if necessary.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1d4fdb5aca
commit
5d18d4df84
|
@ -86,6 +86,14 @@ extern "C++" {
|
|||
|
||||
#undef DEFINE_GUID
|
||||
|
||||
#ifndef DECLSPEC_HIDDEN
|
||||
# if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
|
||||
# define DECLSPEC_HIDDEN __attribute__((visibility ("hidden")))
|
||||
# else
|
||||
# define DECLSPEC_HIDDEN
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef INITGUID
|
||||
#ifdef __cplusplus
|
||||
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
||||
|
|
|
@ -177,6 +177,7 @@ extern "C" {
|
|||
# define DECLSPEC_EXPORT
|
||||
#endif
|
||||
|
||||
#ifndef DECLSPEC_HIDDEN
|
||||
# if defined(_MSC_VER) || defined(__MINGW32__) || defined(__CYGWIN__) || defined(__sun)
|
||||
# define DECLSPEC_HIDDEN
|
||||
# elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
|
||||
|
@ -184,6 +185,7 @@ extern "C" {
|
|||
# else
|
||||
# define DECLSPEC_HIDDEN
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0
|
||||
|
|
Loading…
Reference in New Issue