Fix NeLNS compile under MinGW

This commit is contained in:
kaetemi 2014-06-18 13:03:11 +02:00
parent 75f7b9f931
commit 40854aa5f3
4 changed files with 9 additions and 5 deletions

View file

@ -395,11 +395,11 @@ static void cbWSShardChooseShard (CMessage &msgin, const std::string &serviceNam
string addr;
msgin.serial (addr);
msgout.serial (addr);
ClientsServer->send (msgout, (TSockId)cookie.getUserAddr ());
ClientsServer->send (msgout, (TSockId)cookie.getUserAddr ()); // FIXME: 64-bit
return;
}
msgout.serial(reason);
ClientsServer->send (msgout, (TSockId)cookie.getUserAddr ());
ClientsServer->send (msgout, (TSockId)cookie.getUserAddr ()); // FIXME: 64-bit
}
static const TUnifiedCallbackItem WSCallbackArray[] =

View file

@ -117,7 +117,7 @@ static void cbWSShardChooseShard/* (CMessage &msgin, TSockId from, CCallbackNetB
*/
}
WebServer->send (msgout, (TSockId)cookie.getUserAddr ());
WebServer->send (msgout, (TSockId)cookie.getUserAddr ()); // FIXME: 64-bit
}
static const TUnifiedCallbackItem WSCallbackArray[] =

View file

@ -19,7 +19,9 @@
// we have to include windows.h because mysql.h uses it but not include it
#ifdef NL_OS_WINDOWS
# ifndef NL_COMP_MINGW
# define NOMINMAX
# endif
# include <winsock2.h>
# include <windows.h>
typedef unsigned long ulong;

View file

@ -24,7 +24,9 @@
// we have to include windows.h because mysql.h uses it but not include it
#ifdef NL_OS_WINDOWS
# ifndef NL_COMP_MINGW
# define NOMINMAX
# endif
# include <winsock2.h>
# include <windows.h>
typedef unsigned long ulong;