From 9cf56d917d92959701694477f7944d45ad2c38ed Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 19 May 2007 15:56:42 +0000 Subject: Windows support. Tested and working to compile on freebsd and linux. Next step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'include/inspircd.h') diff --git a/include/inspircd.h b/include/inspircd.h index d81116a1d..fa9b8ed56 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -14,6 +14,16 @@ #ifndef __INSPIRCD_H__ #define __INSPIRCD_H__ +#ifndef WIN32 +#define DllExport +#define CoreExport +#define printf_c printf +#else +#include "inspircd_win32wrapper.h" +#undef DELETE +#undef ERROR +#endif + #include #include #include @@ -216,7 +226,7 @@ class InspIRCd; * I/O (linux seems to, as does freebsd) this will default to * blocking behaviour. */ -class FileLogger : public EventHandler +class CoreExport FileLogger : public EventHandler { protected: /** The creator/owner of this object @@ -284,7 +294,7 @@ class XLineManager; * program in terms of ram usage (basically, you could create * an obese forkbomb built from recursively spawning irc servers!) */ -class InspIRCd : public classbase +class CoreExport InspIRCd : public classbase { private: /** Holds a string describing the last module error to occur -- cgit v1.2.3