diff options
author | Felix Geyer <debfx@fobos.de> | 2013-03-29 19:27:02 +0400 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2013-03-29 19:27:02 +0400 |
commit | 5550d7af0d08a2102d79bbf6580904e0893daa34 (patch) | |
tree | a831321dd76780994babe76f1826ce538d2fb62d /src/core/Global.h | |
parent | 98e59215b897526cf3c4639381e82076abf4ca56 (diff) |
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.
Diffstat (limited to 'src/core/Global.h')
-rw-r--r-- | src/core/Global.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/Global.h b/src/core/Global.h index a2a4e5d3c..b69760605 100644 --- a/src/core/Global.h +++ b/src/core/Global.h @@ -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 |