Explorar el Código

Apparently the visibility attribute only exists in gcc3 and up.

Ryan C. Gordon hace 20 años
padre
commit
1444557273
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      physfs.h

+ 1 - 1
physfs.h

@@ -166,7 +166,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__