Fix autotype test (build) failures on Mac OS and Windows.
We need to tell Windows what symbols the main program exports and the autotype plugin imports. On both systems the linker needs the path of the main program that loads the plugin.
This commit is contained in:
@@ -118,4 +118,14 @@ template <> class QStaticAssertFailure<true> {};
|
||||
#endif // COMPILER_STATIC_ASSERT
|
||||
#endif // !defined(Q_STATIC_ASSERT) && !defined(Q_STATIC_ASSERT_X)
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
# if defined(KEEPASSX_BUILDING_CORE)
|
||||
# define KEEPASSX_EXPORT Q_DECL_EXPORT
|
||||
# else
|
||||
# define KEEPASSX_EXPORT Q_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define KEEPASSX_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // KEEPASSX_GLOBAL_H
|
||||
|
||||
Reference in New Issue
Block a user