Fix NeLNS compile under MinGW

hg/feature/game-device
kaetemi 11 years ago
parent 75f7b9f931
commit 40854aa5f3

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

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

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

Loading…
Cancel
Save