diff options
Diffstat (limited to 'tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp')
-rw-r--r-- | tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp b/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp index f4c585c594..0f27c889fd 100644 --- a/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp +++ b/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp @@ -44,16 +44,10 @@ // (except qglobal.h), or else you'll get tons of compile errors #include <qglobal.h> -// MinGW doesn't provide getaddrinfo(), so we test for Q_OS_WIN -// and Q_CC_GNU, which indirectly tells us whether we're using MinGW. -#if defined(Q_OS_WIN) && defined(Q_CC_GNU) -# define QT_NO_GETADDRINFO -#endif - // To prevent windows system header files from re-defining min/max #define NOMINMAX 1 -#if defined(Q_OS_WIN) && !defined(QT_NO_GETADDRINFO) +#if defined(Q_OS_WIN) # include <winsock2.h> # include <ws2tcpip.h> #endif @@ -216,7 +210,7 @@ void tst_QHostInfo::initTestCase() } // HP-UX 11i does not support IPv6 reverse lookups. -#if !defined(QT_NO_GETADDRINFO) || !(defined(Q_OS_HPUX) && defined(__ia64)) +#if !defined(QT_NO_GETADDRINFO) && !(defined(Q_OS_HPUX) && defined(__ia64)) // check if the system getaddrinfo can do IPv6 lookups struct addrinfo hint, *result = 0; memset(&hint, 0, sizeof hint); |