Commit d03300ec authored by Alexandre Julliard's avatar Alexandre Julliard

Define INADDR_NONE if needed (reported by Robert Lunnon).

parent 6235a28a
...@@ -46,6 +46,10 @@ ...@@ -46,6 +46,10 @@
WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi); WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
#ifndef INADDR_NONE
#define INADDR_NONE ~0UL
#endif
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ {
switch (fdwReason) { switch (fdwReason) {
......
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
WINE_DEFAULT_DEBUG_CHANNEL(file); WINE_DEFAULT_DEBUG_CHANNEL(file);
#ifndef INADDR_NONE
#define INADDR_NONE ~0UL
#endif
static BOOL DeviceIo_VTDAPI(DWORD dwIoControlCode, static BOOL DeviceIo_VTDAPI(DWORD dwIoControlCode,
LPVOID lpvInBuffer, DWORD cbInBuffer, LPVOID lpvInBuffer, DWORD cbInBuffer,
......
...@@ -84,6 +84,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(netbios); ...@@ -84,6 +84,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(netbios);
#define PORT_NBDG 138 #define PORT_NBDG 138
#define PORT_NBSS 139 #define PORT_NBSS 139
#ifndef INADDR_NONE
#define INADDR_NONE ~0UL
#endif
#define NBR_ADDWORD(p,word) (*(WORD *)(p)) = htons(word) #define NBR_ADDWORD(p,word) (*(WORD *)(p)) = htons(word)
#define NBR_GETWORD(p) ntohs(*(WORD *)(p)) #define NBR_GETWORD(p) ntohs(*(WORD *)(p))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment