X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Finspircd_win32wrapper.h;h=fc9905403b36dc186db2c01000a17622cec1c2b0;hb=48045988a48a738a1ffa183fdc1e335a431312a8;hp=2935ba5c90a311d56f9779cbdcef15f982628f3a;hpb=a539875eccf01c6d0a5fb21649d10a23ad191b23;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 2935ba5c9..fc9905403 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -28,6 +28,13 @@ #define ENABLE_CRASHDUMPS 0 /* This defaults to 64, way too small for an ircd! */ +/* CRT memory debugging */ +#ifdef DEBUG +#define _CRTDBG_MAP_ALLOC +#include +#include +#endif + #define FD_SETSIZE 24000 /* Make builds smaller, leaner and faster */ @@ -100,6 +107,7 @@ #define ECONNREFUSED WSAECONNREFUSED #define EADDRINUSE WSAEADDRINUSE #define EINPROGRESS WSAEWOULDBLOCK +#define EADDRNOTAVAIL WSAEADDRNOTAVAIL /* Convert formatted (xxx.xxx.xxx.xxx) string to in_addr struct */ CoreExport int inet_pton(int af, const char * src, void * dst); @@ -114,9 +122,6 @@ CoreExport const char * inet_ntop(int af, const void * src, char * dst, socklen_ /* Since when does the ISO C++ standard *remove* C functions?! */ #define mkdir(file,mode) _mkdir(file) -/* Recursive token function doesn't exist in VC++ */ -CoreExport char * strtok_r(char *_String, const char *_Control, char **_Context); - /* Unix-style sleep (argument is in seconds) */ __inline void sleep(int seconds) { Sleep(seconds * 1000); } @@ -220,6 +225,5 @@ CoreExport bool initwmi(); CoreExport void donewmi(); CoreExport int getcpu(); - #endif