diff options
author | Adam <Adam@anope.org> | 2010-10-11 18:47:54 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-10-11 18:47:54 -0400 |
commit | d7aa5f6a3a69c69b5ab3d2ddcdfd2f819e840703 (patch) | |
tree | 2236bbe0a4a984e4cabb8d8b1547a7f84dcd3018 /include/modules.h | |
parent | 717c123441bb47a4fab859e8fb3ec8c6ac5b7223 (diff) |
Fixed Windows build
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 9 |
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> ¶ms); |