Define INADDR_NONE if needed (reported by Robert Lunnon).
This commit is contained in:
parent
6235a28adc
commit
d03300eca3
|
@ -46,6 +46,10 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
|
||||
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE ~0UL
|
||||
#endif
|
||||
|
||||
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
switch (fdwReason) {
|
||||
|
|
|
@ -57,6 +57,9 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(file);
|
||||
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE ~0UL
|
||||
#endif
|
||||
|
||||
static BOOL DeviceIo_VTDAPI(DWORD dwIoControlCode,
|
||||
LPVOID lpvInBuffer, DWORD cbInBuffer,
|
||||
|
|
|
@ -84,6 +84,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(netbios);
|
|||
#define PORT_NBDG 138
|
||||
#define PORT_NBSS 139
|
||||
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE ~0UL
|
||||
#endif
|
||||
|
||||
#define NBR_ADDWORD(p,word) (*(WORD *)(p)) = htons(word)
|
||||
#define NBR_GETWORD(p) ntohs(*(WORD *)(p))
|
||||
|
||||
|
|
Loading…
Reference in New Issue