diff options
author | Sadie Powell <sadie@witchery.services> | 2022-01-12 23:05:25 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-01-12 23:05:25 +0000 |
commit | 33b42ce86edd190c44db5814967981844e96b421 (patch) | |
tree | bcbb7002d16f78265019963159483c725cd978c8 /src/module.cpp | |
parent | a631028660d527f509c3b028cfa5f2903a125077 (diff) |
Use the default CMake modules for finding gettext instead of our own.
Diffstat (limited to 'src/module.cpp')
-rw-r--r-- | src/module.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/module.cpp b/src/module.cpp index 2881c4e82..6c85284ce 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -11,7 +11,7 @@ #include "language.h" #include "account.h" -#ifdef GETTEXT_FOUND +#ifdef HAVE_LOCALIZATION # include <libintl.h> #endif @@ -39,7 +39,7 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt ModuleManager::Modules.push_back(this); -#if GETTEXT_FOUND +#if HAVE_LOCALIZATION for (unsigned i = 0; i < Language::Languages.size(); ++i) { /* Remove .UTF-8 or any other suffix */ @@ -75,7 +75,7 @@ Module::~Module() if (it != ModuleManager::Modules.end()) ModuleManager::Modules.erase(it); -#if GETTEXT_FOUND +#if HAVE_LOCALIZATION std::vector<Anope::string>::iterator dit = std::find(Language::Domains.begin(), Language::Domains.end(), this->name); if (dit != Language::Domains.end()) Language::Domains.erase(dit); |