From 16af429a6186821aa7e2128c8c1502e2d3166583 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 28 Oct 2012 13:56:53 +0100 Subject: [PATCH] Fixed: NeL NS compilation --- code/nelns/admin_service/admin_service.cpp | 7 +++++-- code/nelns/login_service/login_service.h | 2 ++ code/nelns/login_service/mysql_helper.h | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/code/nelns/admin_service/admin_service.cpp b/code/nelns/admin_service/admin_service.cpp index 8f437adbb..6d75b6aac 100644 --- a/code/nelns/admin_service/admin_service.cpp +++ b/code/nelns/admin_service/admin_service.cpp @@ -31,9 +31,12 @@ #include #include -#if defined (NL_OS_WINDOWS) -#include +#ifdef NL_OS_WINDOWS +#include +#include +typedef unsigned long ulong; #endif + #include #include diff --git a/code/nelns/login_service/login_service.h b/code/nelns/login_service/login_service.h index d8f43219e..7c8c5a427 100644 --- a/code/nelns/login_service/login_service.h +++ b/code/nelns/login_service/login_service.h @@ -20,7 +20,9 @@ // we have to include windows.h because mysql.h uses it but not include it #ifdef NL_OS_WINDOWS # define NOMINMAX +# include # include +typedef unsigned long ulong; #endif #include diff --git a/code/nelns/login_service/mysql_helper.h b/code/nelns/login_service/mysql_helper.h index ab57b8ffa..fee1d1bf6 100644 --- a/code/nelns/login_service/mysql_helper.h +++ b/code/nelns/login_service/mysql_helper.h @@ -25,7 +25,9 @@ // we have to include windows.h because mysql.h uses it but not include it #ifdef NL_OS_WINDOWS # define NOMINMAX +# include # include +typedef unsigned long ulong; #endif #include