Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
bb5c92f9
Commit
bb5c92f9
authored
Oct 05, 2015
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
googletest/include/gtest/internal/gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+3
-3
No files found.
googletest/include/gtest/internal/gtest-port.h
View file @
bb5c92f9
...
@@ -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_
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment