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 /src/modules.cpp | |
parent | 717c123441bb47a4fab859e8fb3ec8c6ac5b7223 (diff) |
Fixed Windows build
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 0f6771c3a..a76f2c5da 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -11,7 +11,10 @@ #include "modules.h" #include "version.h" -#include <libintl.h> + +#if GETTEXT_FOUND +# include <libintl.h> +#endif message_map MessageMap; std::list<Module *> Modules; @@ -261,7 +264,7 @@ void ModuleRunTimeDirCleanUp() { Anope::string filebuf = dirbuf + "/" + FileData.cFileName; if (!DeleteFile(filebuf.c_str())) - Log(LOG_DEBUG) << "Error deleting file " << filebuf << " - GetLastError() reports " << LastError(); + Log(LOG_DEBUG) << "Error deleting file " << filebuf << " - GetLastError() reports " << Anope::LastError(); } if (!FindNextFile(hList, &FileData)) { |