Fix definition of GTEST_API_ macro for gcc and clang [#451].
This is to enable using gtest with -fvisibility=hidden.
This commit is contained in:
		
							parent
							
								
									153d9d744b
								
							
						
					
					
						commit
						b9be8ead94
					
				@ -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_
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user