diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-23 10:17:18 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-23 11:51:49 +0000 |
commit | 0694a8ba6394ba194fabc2201ad4549a2b97fc55 (patch) | |
tree | cc9e80275b20759b88d625a2279ed3edf47829b3 | |
parent | dc936eaab18e709faa5154a21a269d0fe54521af (diff) | |
download | qtwebsockets-0694a8ba6394ba194fabc2201ad4549a2b97fc55.tar.gz |
Fix the build for WinRT/ARM
Task-number: QTBUG-44491
Change-Id: Iec007ff83414d333d10609882b11ab4fd485345a
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
-rw-r--r-- | src/websockets/qwebsocketframe.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/websockets/qwebsocketframe.cpp b/src/websockets/qwebsocketframe.cpp index c8d0ac3..5b425eb 100644 --- a/src/websockets/qwebsocketframe.cpp +++ b/src/websockets/qwebsocketframe.cpp @@ -307,7 +307,7 @@ bool QWebSocketFrame::isValid() const // The arm compiler of Visual Studio 2013 Update 3 crashes when // trying to optimize QWebSocketFrame::readFrame. Hence turn // those off for this snippet -#if defined(Q_OS_WINPHONE) && defined(__ARM__) +#if (defined(Q_OS_WINPHONE) || defined(Q_OS_WINRT)) && defined(__ARM__) # pragma optimize("", off) #endif @@ -519,7 +519,7 @@ QWebSocketFrame QWebSocketFrame::readFrame(QIODevice *pIoDevice) return frame; } -#if defined(Q_OS_WINPHONE) && defined(__ARM__) +#if (defined(Q_OS_WINPHONE) || defined(Q_OS_WINRT)) && defined(__ARM__) # pragma optimize("", on) #endif |