From e6aba2f7cd02e5b268eb764765dc935bd8ba05a3 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Date: Mon, 11 Mar 2013 20:29:27 +0100 Subject: [PATCH] re-enable QT_NO_LIBRARY support on Windows the exclusion came in with the original winCE port. the reason for this is not clear. Change-Id: I8cd59d27fcc292186e5eef3238f56bad2cf320c1 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> --- src/corelib/io/qfilesystemengine_win.cpp | 2 ++ src/corelib/plugin/qlibrary.h | 6 ------ src/corelib/plugin/qlibrary_win.cpp | 7 +++---- src/corelib/plugin/qpluginloader.h | 5 ----- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/corelib/io/qfilesystemengine_win.cpp b/src/corelib/io/qfilesystemengine_win.cpp index 5bd9903da14..bee7689535e 100644 --- a/src/corelib/io/qfilesystemengine_win.cpp +++ b/src/corelib/io/qfilesystemengine_win.cpp @@ -145,8 +145,10 @@ Q_CORE_EXPORT int qt_ntfs_permission_lookup = 0; static QString qfsPrivateCurrentDir = QLatin1String(""); // As none of the functions we try to resolve do exist on Windows CE // we use QT_NO_LIBRARY to shorten everything up a little bit. +#ifndef QT_NO_LIBRARY #define QT_NO_LIBRARY 1 #endif +#endif #if !defined(QT_NO_LIBRARY) QT_BEGIN_INCLUDE_NAMESPACE diff --git a/src/corelib/plugin/qlibrary.h b/src/corelib/plugin/qlibrary.h index 5c81e6af1ac..865bb8c3e3d 100644 --- a/src/corelib/plugin/qlibrary.h +++ b/src/corelib/plugin/qlibrary.h @@ -46,12 +46,6 @@ QT_BEGIN_NAMESPACE - -#if defined(QT_NO_LIBRARY) && defined(Q_OS_WIN) -#undef QT_NO_LIBRARY -#pragma message("QT_NO_LIBRARY is not supported on Windows") -#endif - #ifndef QT_NO_LIBRARY class QLibraryPrivate; diff --git a/src/corelib/plugin/qlibrary_win.cpp b/src/corelib/plugin/qlibrary_win.cpp index f066ff2df46..16445f1163c 100644 --- a/src/corelib/plugin/qlibrary_win.cpp +++ b/src/corelib/plugin/qlibrary_win.cpp @@ -46,10 +46,7 @@ #include "qfileinfo.h" #include <private/qfilesystementry_p.h> -#if defined(QT_NO_LIBRARY) && defined(Q_OS_WIN) -#undef QT_NO_LIBRARY -#pragma message("QT_NO_LIBRARY is not supported on Windows") -#endif +#ifndef QT_NO_LIBRARY #include <qt_windows.h> @@ -166,3 +163,5 @@ QFunctionPointer QLibraryPrivate::resolve_sys(const char* symbol) return QFunctionPointer(address); } QT_END_NAMESPACE + +#endif // QT_NO_LIBRARY diff --git a/src/corelib/plugin/qpluginloader.h b/src/corelib/plugin/qpluginloader.h index 3d1d2dbe0b5..8f8833e8391 100644 --- a/src/corelib/plugin/qpluginloader.h +++ b/src/corelib/plugin/qpluginloader.h @@ -44,11 +44,6 @@ #include <QtCore/qlibrary.h> -#if defined(QT_NO_LIBRARY) && defined(Q_OS_WIN) -#undef QT_NO_LIBRARY -#pragma message("QT_NO_LIBRARY is not supported on Windows") -#endif - #ifndef QT_NO_LIBRARY QT_BEGIN_NAMESPACE -- GitLab