The visibility attribute is supported only by gcc >= 3.3

Michael Stefaniuc mstefani at redhat.de
Mon Jun 12 17:52:00 CDT 2006


---

 include/winnt.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

94dd455637cbcfbe91772dd6765d61b20d29622d
diff --git a/include/winnt.h b/include/winnt.h
index d2c6452..528aedc 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
-- 
1.3.3


-- 
Michael Stefaniuc               Tel.: +49-711-96437-199
Sr. Network Engineer            Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani at redhat.com
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060613/ff721e29/attachment.pgp


More information about the wine-patches mailing list