summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorHarald Fernengel <harald@trolltech.com>2009-08-12 12:53:44 (GMT)
committerHarald Fernengel <harald@trolltech.com>2009-08-12 12:55:22 (GMT)
commite7e31867ed9857b17dbb4aa4e6cb06c93234be4f (patch)
tree1ed561f5f0fbccced3f01d05263615d7ddb4880a /src/tools
parente7ae75aa315ee3e5ce465b1bcc878aeccea742c2 (diff)
downloadQt-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')
-rw-r--r--src/tools/rcc/rcc.cpp4
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");
}