commit | a8e7ea7fb026d5d3e0a037f5ced8010187541a41 | [log] [tgz] |
---|---|---|
author | Matthew Woehlke <matthew.woehlke@kitware.com> | Tue Aug 09 13:16:26 2016 -0400 |
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | Tue Aug 09 13:16:26 2016 -0400 |
tree | 46102f1122946437321f79d433d4eb88019cda61 | |
parent | 75c8f40640a9014e98498aee7ad6775d58b39dc6 [diff] [blame] |
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.
diff --git a/tinyxml2.h b/tinyxml2.h index fb4376d..2dc98d3 100755 --- a/tinyxml2.h +++ b/tinyxml2.h
@@ -72,6 +72,8 @@ # else # define TINYXML2_LIB # endif +#elif __GNUC__ >= 4 +# define TINYXML2_LIB __attribute__((visibility("default"))) #else # define TINYXML2_LIB #endif