summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-11 18:47:54 -0400
committerAdam <Adam@anope.org>2010-10-11 18:47:54 -0400
commitd7aa5f6a3a69c69b5ab3d2ddcdfd2f819e840703 (patch)
tree2236bbe0a4a984e4cabb8d8b1547a7f84dcd3018 /include/modules.h
parent717c123441bb47a4fab859e8fb3ec8c6ac5b7223 (diff)
Fixed Windows build
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/modules.h b/include/modules.h
index 4377975b1..e47b5612b 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -27,7 +27,7 @@
# define dlsym(file, symbol) (HMODULE)GetProcAddress(file, symbol)
# define dlclose(file) FreeLibrary(file) ? 0 : 1
# define ano_modclearerr() SetLastError(0)
-# define ano_moderr() LastError().c_str()
+# define ano_moderr() Anope::LastError().c_str()
#else
typedef void * ano_module_t;
@@ -123,11 +123,9 @@ else \
# ifndef RTLD_LOCAL
# define RTLD_LOCAL 0
# endif
-#else
- const char *ano_moderr();
#endif
-struct Message;
+class Message;
extern CoreExport Module *FindModule(const Anope::string &name);
int protocol_module_init();
@@ -1265,8 +1263,9 @@ class service_reference : public dynamic_reference<T>
}
};
-struct Message
+class CoreExport Message
{
+public:
Anope::string name;
bool (*func)(const Anope::string &source, const std::vector<Anope::string> &params);