Commit bb5c92f9 authored by Dominic Meiser's avatar Dominic Meiser
Browse files

Fix definition of GTEST_API_ macro for gcc and clang [#451].

This is to enable using gtest with -fvisibility=hidden.
parent 43359642
...@@ -920,14 +920,14 @@ using ::std::tuple_size; ...@@ -920,14 +920,14 @@ using ::std::tuple_size;
#endif // GTEST_HAS_SEH #endif // GTEST_HAS_SEH
#ifdef _MSC_VER #ifdef _MSC_VER
# if GTEST_LINKED_AS_SHARED_LIBRARY # if GTEST_LINKED_AS_SHARED_LIBRARY
# define GTEST_API_ __declspec(dllimport) # define GTEST_API_ __declspec(dllimport)
# elif GTEST_CREATE_SHARED_LIBRARY # elif GTEST_CREATE_SHARED_LIBRARY
# define GTEST_API_ __declspec(dllexport) # define GTEST_API_ __declspec(dllexport)
# endif # endif
#elif __GNUC__ >= 4 || defined(__clang__)
#endif // _MSC_VER # define GTEST_API_ __attribute__((visibility ("default")))
#endif // _MSC_VER
#ifndef GTEST_API_ #ifndef GTEST_API_
# define GTEST_API_ # define GTEST_API_
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment