qt5base-lts/tests/auto/network/socket
Simon Hausmann 5230d62feb Partial fix for WebKit compilation on Windows
qdatetime.h uses std::min/max and on Windows windows.h (or some subsequent
header file) may under certain circumstances define min/max as macros.

The easiest way to prevent the windows header files from doing that is to
define NOMINMAX in the place right before windows.h is included. The other
way is to define min and max to min/max themselves to prevent windows.h
from doing its evil thing.

If a user of Qt (WebKit in this case) chooses the approach of defining
min/max to themselves and then includes qdatetime.h, then a subsequent
inclusion of windows.h doesn't work because qdatetime.h undefines min/max.

We should not enforce the type of workaround needed, therefore this patch
removes the workaround from qdatetime.h and requires user code that
happens to include windows header files before qdatetime.h (seldom case)
to choose either workaround.

Change-Id: I7347eec7369491a065e894cff557004e069453d5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-06-13 23:24:08 +02:00
..
platformsocketengine Fallback to IPv4 when IPv6 is not present. 2012-05-21 13:00:27 +02:00
qabstractsocket Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qhttpsocketengine Improved stability of tst_qhttpsocketengine 2012-02-08 02:10:44 +01:00
qlocalsocket Don't use obsolete qVariantValue, qVariantCanConvert, etc. 2012-05-02 08:30:59 +02:00
qsocks5socketengine Don't use obsolete qVariantValue, qVariantCanConvert, etc. 2012-05-02 08:30:59 +02:00
qtcpserver Partial fix for WebKit compilation on Windows 2012-06-13 23:24:08 +02:00
qtcpsocket Partial fix for WebKit compilation on Windows 2012-06-13 23:24:08 +02:00
qudpsocket Set explicit testcase.timeout for slow tests 2012-05-29 09:39:18 +02:00
socket.pro Enable qlocalsocket auto test 2012-02-21 22:31:00 +01:00