include: The visibility attribute is supported only by gcc >= 3.3.

This commit is contained in:
Michael Stefaniuc 2006-06-13 00:52:00 +02:00 committed by Alexandre Julliard
parent abc0f385a3
commit 3f46314e33
1 changed files with 2 additions and 2 deletions

View File

@ -136,13 +136,13 @@
# define DECLSPEC_EXPORT __declspec(dllexport)
#elif defined(__MINGW32__)
# define DECLSPEC_EXPORT __attribute__((dllexport))
#elif defined(__GNUC__) && (__GNUC__ > 2)
#elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
# define DECLSPEC_EXPORT __attribute__((visibility ("default")))
#else
# define DECLSPEC_EXPORT
#endif
#if defined(__GNUC__) && (__GNUC__ > 2)
#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
# define DECLSPEC_HIDDEN __attribute__((visibility ("hidden")))
#else
# define DECLSPEC_HIDDEN