mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 08:46:19 +00:00
Fix NeLNS compile under MinGW
This commit is contained in:
parent
a47d71713f
commit
c539596231
4 changed files with 9 additions and 5 deletions
|
@ -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[] =
|
||||
|
|
|
@ -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[] =
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue