winrt: Fix build when INADDR_XXX macros are not defined

These macros are not defined unless a desktop or standalone SDK is
installed.

Change-Id: I4c600ddca5944cc5fde310e4fbe0866a7250d36b
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
This commit is contained in:
Andrew Knight 2015-07-21 23:10:31 +03:00
parent fa542b2ab6
commit eff4a29489

View File

@ -130,4 +130,14 @@
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