diff --git a/src/plugins/sceneformats/assimp/ailoaderiostream.cpp b/src/plugins/sceneformats/assimp/ailoaderiostream.cpp index 0ee44863f..c130592c0 100644 --- a/src/plugins/sceneformats/assimp/ailoaderiostream.cpp +++ b/src/plugins/sceneformats/assimp/ailoaderiostream.cpp @@ -66,8 +66,11 @@ size_t AiLoaderIOStream::Read( void* pvBuffer, size_t pSize, size_t pCount) fprintf(stderr, "AI read error: %s\n", qPrintable(m_device->errorString())); if ((pSize * pCount) != res) // AI will treat as error { + long unsigned int pSizeP = pSize; + long unsigned int pCountP = pCount; + long unsigned int pRes = res; fprintf(stderr, "read mismatch requested size: %lu x count: %lu = %lu != %lu actuall read\n", - pSize, pCount, (pSize * pCount), res); + pSizeP, pCountP, (pSizeP * pCountP), pRes); } return res; } diff --git a/src/private/qfactoryloader_p.h b/src/private/qfactoryloader_p.h index 57432ddd3..17c437222 100644 --- a/src/private/qfactoryloader_p.h +++ b/src/private/qfactoryloader_p.h @@ -63,6 +63,10 @@ QT_BEGIN_NAMESPACE class QFactoryLoaderPrivate; +#ifdef Q_WS_X11 +class QLibraryPrivate; +#endif + class Q_CORE_EXPORT QFactoryLoader : public QObject { Q_OBJECT