Fixed iOS compilation issues.
authorIan Dean <ian@mediator-software.com>
Mon, 23 Apr 2012 15:10:57 +0000 (16:10 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 26 Apr 2012 15:52:12 +0000 (17:52 +0200)
Put MacOS-specific code in #ifdef blocks so that it is not compiled for
iOS.

Change-Id: I303b7dbb63eb298e92351951731868df6a38bffa
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/network/access/qnetworkaccessmanager.cpp

index 8d68f43..7e95fc5 100644 (file)
@@ -82,7 +82,7 @@ Q_GLOBAL_STATIC(QNetworkAccessFtpBackendFactory, ftpBackend)
 Q_GLOBAL_STATIC(QNetworkAccessDebugPipeBackendFactory, debugpipeBackend)
 #endif
 
-#ifdef Q_OS_MAC
+#if defined(Q_OS_MAC) && !defined(Q_OS_IOS)
 
 #include <CoreServices/CoreServices.h>
 #include <SystemConfiguration/SystemConfiguration.h>
@@ -1186,7 +1186,7 @@ void QNetworkAccessManagerPrivate::authenticationRequired(QAuthenticator *authen
             return;
         }
     }
-#ifdef Q_OS_MAC
+#if defined(Q_OS_MAC) && !defined(Q_OS_IOS)
     //now we try to get the username and password from keychain
     //if not successful signal will be emitted
     QString username;