diff --git a/Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.cpp b/Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.cpp index 13abcaca..14f7ca1a 100644 --- a/Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.cpp +++ b/Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.cpp @@ -29,12 +29,13 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "hsTypes.h" #include "pnAddrInfo.h" #include + #if HS_BUILD_FOR_UNIX -#include -#include -#include -#include -#include +# include +# include +# include +# include +# include #endif const pnAddrInfo* pnAddrInfo::GetInterface() @@ -138,7 +139,8 @@ void pnAddrInfo::GetLocalAddrs(List& addrslist, bool incLoopBack) SOCKET s = socket(AF_INET, SOCK_DGRAM, 0); - if (WSAIoctl(s,SIO_GET_INTERFACE_LIST,NULL,NULL,(void*)infos,bufSize,&retSize,NULL,NULL) == 0) + if (WSAIoctl(s, SIO_GET_INTERFACE_LIST, NULL, 0, + (void*)infos, bufSize, &retSize, NULL, NULL) == 0) { unsigned int entries = retSize/sizeof(INTERFACE_INFO); int i; diff --git a/Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.h b/Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.h index dbee76f9..50051182 100644 --- a/Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.h +++ b/Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.h @@ -33,15 +33,19 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com // Unix and XP use native code #if HS_BUILD_FOR_UNIX -#include -#include -#include +# include +# include +# include #elif HS_BUILD_FOR_WIN32 -#include -#include +# if (_WIN32_WINNT < 0x0501) +# define _WIN32_WINNT 0x0501 +# endif +# include +# include #else -#error "pnAddrInfo Not Implemented!" +# error "pnAddrInfo Not Implemented!" #endif + #include "hsTypes.h" #include "hsStlUtils.h" diff --git a/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/W9x/pnAceW9xSocket.cpp b/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/W9x/pnAceW9xSocket.cpp index 24e91643..6982db07 100644 --- a/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/W9x/pnAceW9xSocket.cpp +++ b/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/W9x/pnAceW9xSocket.cpp @@ -605,7 +605,7 @@ void CSocket::ProcessQueue () { // Dispatch it switch (command->code) { - case command->WRITE: { + case Command::WRITE: { AsyncNotifySocketWrite notify; notify.param = command->param; notify.asyncId = 0;