mirror of
https://github.com/anope/anope.git
synced 2026-07-08 10:03:14 +02:00
Various fixes for compiling under Windows.
Also updated ms_* modules to use std::vector Memo struct from earlier commit. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1797 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+13
-5
@@ -178,10 +178,18 @@ extern int strncasecmp(const char *, const char *, size_t);
|
||||
#define MARK_DEPRECATED
|
||||
#endif
|
||||
|
||||
/** XXX: we need to grab these from inspircd -- w00t
|
||||
*/
|
||||
#define DllExport
|
||||
#define CoreExport
|
||||
#ifdef _WIN32
|
||||
# ifdef MODULE_COMPILE
|
||||
# define CoreExport __declspec(dllimport)
|
||||
# define DllExport __declspec(dllexport)
|
||||
# else
|
||||
# define CoreExport __declspec(dllexport)
|
||||
# define DllExport __declspec(dllimport)
|
||||
# endif
|
||||
#else
|
||||
# define DllExport
|
||||
# define CoreExport
|
||||
#endif
|
||||
|
||||
/** This definition is used as shorthand for the various classes
|
||||
* and functions needed to make a module loadable by the OS.
|
||||
@@ -203,7 +211,7 @@ extern int strncasecmp(const char *, const char *, size_t);
|
||||
} \
|
||||
return TRUE; \
|
||||
} \
|
||||
extern "C" DllExport void *destroy_module(y *m) \
|
||||
extern "C" DllExport void destroy_module(y *m) \
|
||||
{ \
|
||||
delete m; \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user