Przeglądaj źródła

Apparently the visibility attribute only exists in gcc3 and up.

Ryan C. Gordon 20 lat temu
rodzic
commit
1444557273
1 zmienionych plików z 1 dodań i 1 usunięć
  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__