Define INADDR_NONE if needed (reported by Robert Lunnon).

This commit is contained in:
Alexandre Julliard 2004-01-15 00:25:41 +00:00
parent 6235a28adc
commit d03300eca3
3 changed files with 11 additions and 0 deletions

View File

@ -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) {

View File

@ -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,

View File

@ -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))