diff options
author | Harald Fernengel <harald@trolltech.com> | 2009-08-12 12:53:44 (GMT) |
---|---|---|
committer | Harald Fernengel <harald@trolltech.com> | 2009-08-12 12:55:22 (GMT) |
commit | e7e31867ed9857b17dbb4aa4e6cb06c93234be4f (patch) | |
tree | 1ed561f5f0fbccced3f01d05263615d7ddb4880a /src/tools/rcc | |
parent | e7ae75aa315ee3e5ce465b1bcc878aeccea742c2 (diff) | |
download | Qt-e7e31867ed9857b17dbb4aa4e6cb06c93234be4f.zip Qt-e7e31867ed9857b17dbb4aa4e6cb06c93234be4f.tar.gz Qt-e7e31867ed9857b17dbb4aa4e6cb06c93234be4f.tar.bz2 |
extern the Qt helper functions with Q_CORE_EXPORT
The q* helper functions are declared as Q_CORE_EXPORT, so they have to
be extern'd like that as well. This fixes a problem where adding a
resource to a project would result in undefined symbols on some RVCT
versions.
Reviewed-by: Andy Shaw <andy.shaw@nokia.com>
Diffstat (limited to 'src/tools/rcc')
-rw-r--r-- | src/tools/rcc/rcc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/rcc/rcc.cpp b/src/tools/rcc/rcc.cpp index 3b877ae..1d22dec 100644 --- a/src/tools/rcc/rcc.cpp +++ b/src/tools/rcc/rcc.cpp @@ -894,10 +894,10 @@ bool RCCResourceLibrary::writeInitializer() if (m_useNameSpace) writeString("QT_BEGIN_NAMESPACE\n\n"); if (m_root) { - writeString("extern bool qRegisterResourceData\n " + writeString("extern Q_CORE_EXPORT bool qRegisterResourceData\n " "(int, const unsigned char *, " "const unsigned char *, const unsigned char *);\n\n"); - writeString("extern bool qUnregisterResourceData\n " + writeString("extern Q_CORE_EXPORT bool qUnregisterResourceData\n " "(int, const unsigned char *, " "const unsigned char *, const unsigned char *);\n\n"); } |