diff options
author | Oliver Wolff <oliver.wolff@theqtcompany.com> | 2015-12-16 15:33:42 +0100 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@theqtcompany.com> | 2016-01-05 08:14:31 +0000 |
commit | 190c76f685f1dcafbcc762082edcdccdb9bb8b0b (patch) | |
tree | 6d7d0bdb92da83f8875db96948ae2c80fcb0cd07 /mkspecs/common/winrt_winphone/qplatformdefs.h | |
parent | 2ca20724dd17df96143be160505f982ab6cf4378 (diff) |
winrt: Use winsock2 API for hostname resolution on WinRT/WinPhone
That API has been available for WinRT and Windows
Phone for some time now. By using it to get the
machine name and for hostname resolution we can get
rid of some winrt-only code and use qhostinfo_win.cpp
on WinRT and Windows phone as well.
Additionally the required capability was added to
tst_qhostinfo so that this auto test can be run without
any manual editing.
Change-Id: I63fa5521bf8cdb0c919bd5a0100ea977c865622a
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
Diffstat (limited to 'mkspecs/common/winrt_winphone/qplatformdefs.h')
-rw-r--r-- | mkspecs/common/winrt_winphone/qplatformdefs.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mkspecs/common/winrt_winphone/qplatformdefs.h b/mkspecs/common/winrt_winphone/qplatformdefs.h index 6abac1e94d..14f6c58253 100644 --- a/mkspecs/common/winrt_winphone/qplatformdefs.h +++ b/mkspecs/common/winrt_winphone/qplatformdefs.h @@ -130,14 +130,4 @@ typedef int mode_t; -#ifndef INADDR_ANY -# define INADDR_ANY (u_long)0x00000000 -#endif -#ifndef INADDR_LOOPBACK -# define INADDR_LOOPBACK 0x7f000001 -#endif -#ifndef INADDR_BROADCAST -# define INADDR_BROADCAST (u_long)0xffffffff -#endif - #endif // QPLATFORMDEFS_H |