diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-09-26 15:35:24 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-09-26 15:35:24 -0400 |
commit | 7db5e19f7499cce5b86d63f8af5ae5ecf7245bf0 (patch) | |
tree | 532fc89a01b88eb427d714940b015a61a7e960cb /src/module.cpp | |
parent | f3840ed110ecaac1a2777692b714f283600d9afa (diff) |
Partial fix for finding gettext with CMake, still doesn't fix the lack of finding non-standard paths though.
Diffstat (limited to 'src/module.cpp')
-rw-r--r-- | src/module.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/module.cpp b/src/module.cpp index da6673dbf..2b7676550 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -8,7 +8,7 @@ #include "modules.h" -#ifdef HAVE_GETTEXT +#ifdef GETTEXT_FOUND # include <libintl.h> #endif @@ -29,11 +29,9 @@ Module::Module(const Anope::string &mname, const Anope::string &creator) Modules.push_back(this); -#if HAVE_GETTEXT +#if GETTEXT_FOUND if (!bindtextdomain(this->name.c_str(), (services_dir + "/languages/").c_str())) - { Log() << "Error calling bindtextdomain, " << Anope::LastError(); - } #endif } |