Bug 844630 - Be explicit about environ visibility. r=bgirard

This commit is contained in:
Milan Sreckovic 2013-02-26 13:21:06 -05:00
parent 75c19cf6e0
commit 3655509702

View File

@ -890,7 +890,7 @@ inline char** GetEnviron() {
# else
// Some POSIX platforms expect you to declare environ. extern "C" makes
// it reside in the global namespace.
extern "C" char** environ;
extern "C" __attribute__ ((visibility ("default"))) char** environ;
inline char** GetEnviron() { return environ; }
# endif // GTEST_OS_MAC