Apparently the visibility attribute only exists in gcc3 and up.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 23 Mar 2006 10:15:29 +0000
changeset 772 f64e860ebc2a
parent 770 883940fe64f9
child 773 8215379394b5
Apparently the visibility attribute only exists in gcc3 and up.
physfs.h
--- a/physfs.h	Thu Mar 23 06:49:01 2006 +0000
+++ b/physfs.h	Thu Mar 23 10:15:29 2006 +0000
@@ -166,7 +166,7 @@
 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
 #if (defined _MSC_VER)
 #define __EXPORT__ __declspec(dllexport)
-#elif (defined __GNUC__)
+#elif (__GNUC__ >= 3)
 #define __EXPORT__ __attribute__((visibility("default")))
 #else
 #define __EXPORT__