diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-19 15:56:42 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-19 15:56:42 +0000 |
commit | 9cf56d917d92959701694477f7944d45ad2c38ed (patch) | |
tree | a379ee905e7485c2ee825790720ed2b69ba127d1 /include/inspircd.h | |
parent | 3bbb36695383badf5b3ba0ecba070f16094ae51d (diff) |
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
Diffstat (limited to 'include/inspircd.h')
-rw-r--r-- | include/inspircd.h | 14 |
1 files changed, 12 insertions, 2 deletions
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 <time.h> #include <string> #include <sstream> @@ -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 |