From cbf1dc67f39f53a49ffa6c578872f7348fc65f7f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 23 Mar 2006 10:15:29 +0000 Subject: [PATCH] Apparently the visibility attribute only exists in gcc3 and up. --- physfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physfs.h b/physfs.h index 17ea4bb..a7436b7 100644 --- a/physfs.h +++ b/physfs.h @@ -153,7 +153,7 @@ extern "C" { #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__