Module: wine Branch: refs/heads/master Commit: 3f46314e33cffd9ea7376adf3aef048747b70c47 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=3f46314e33cffd9ea7376adf...
Author: Michael Stefaniuc mstefani@redhat.de Date: Tue Jun 13 00:52:00 2006 +0200
include: The visibility attribute is supported only by gcc >= 3.3.
---
include/winnt.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/winnt.h b/include/winnt.h index d2c6452..77bf11e 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -136,13 +136,13 @@ #ifdef _MSC_VER # 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