Parcourir la source

Set ELF visibility

Set symbol visibility to "default" on non-Windows platforms. This allows
building with -fvisibility=hidden, which has various advantages, and
which some projects will almost certainly want to do.
Matthew Woehlke il y a 9 ans
Parent
commit
a8e7ea7fb0
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      tinyxml2.h

+ 2 - 0
tinyxml2.h

@@ -72,6 +72,8 @@ distribution.
 #   else
 #       define TINYXML2_LIB
 #   endif
+#elif __GNUC__ >= 4
+#   define TINYXML2_LIB __attribute__((visibility("default")))
 #else
 #   define TINYXML2_LIB
 #endif