mirror of https://github.com/AxioDL/tinyxml2.git
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.
This commit is contained in:
parent
75c8f40640
commit
a8e7ea7fb0
|
@ -72,6 +72,8 @@ distribution.
|
||||||
# else
|
# else
|
||||||
# define TINYXML2_LIB
|
# define TINYXML2_LIB
|
||||||
# endif
|
# endif
|
||||||
|
#elif __GNUC__ >= 4
|
||||||
|
# define TINYXML2_LIB __attribute__((visibility("default")))
|
||||||
#else
|
#else
|
||||||
# define TINYXML2_LIB
|
# define TINYXML2_LIB
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue