1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 03:23:13 +02:00

Fixed Windows build

This commit is contained in:
Adam
2010-10-11 18:47:54 -04:00
parent 717c123441
commit d7aa5f6a3a
13 changed files with 34 additions and 27 deletions
+4 -5
View File
@@ -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);