mirror of
https://github.com/catchorg/Catch2.git
synced 2025-10-19 16:45:40 +02:00
Fix building as shared library with MSVC.
This commit is contained in:

committed by
Martin Hořeňovský

parent
0de60d8e7e
commit
c0e582e659
@@ -382,5 +382,15 @@
|
||||
# define CATCH_CONFIG_COLOUR_WIN32
|
||||
#endif
|
||||
|
||||
#if defined( CATCH_CONFIG_SHARED_LIBRARY ) && defined( _MSC_VER ) && \
|
||||
!defined( CATCH_CONFIG_STATIC )
|
||||
# ifdef Catch2_EXPORTS
|
||||
# define CATCH_EXPORT //__declspec( dllexport ) // not needed
|
||||
# else
|
||||
# define CATCH_EXPORT __declspec( dllimport )
|
||||
# endif
|
||||
#else
|
||||
# define CATCH_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // CATCH_COMPILER_CAPABILITIES_HPP_INCLUDED
|
||||
|
Reference in New Issue
Block a user