Linux fixes for new repo.

Now builds on linux, albeit with lots of warnings.
This commit is contained in:
Sarah Smith 2011-03-19 04:53:12 +10:00
parent 07f61af5db
commit e2f8a10715
2 changed files with 8 additions and 1 deletions

View File

@ -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;
}

View File

@ -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