Apparently the visibility attribute only exists in gcc3 and up. stable-1.0
authorRyan C. Gordon <icculus@icculus.org>
Thu, 23 Mar 2006 10:15:29 +0000
branchstable-1.0
changeset 771 3261957946d9
parent 769 c9ff41dec8fa
child 778 851766195e09
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
@@ -153,7 +153,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__