[monitoring-plugins] common.h: added guard to avoid warning when ...

GitHub git at monitoring-plugins.org
Tue Apr 7 13:20:12 CEST 2026


    Module: monitoring-plugins
    Branch: master
    Commit: 81345e3487b85712287efc851e67ca60da59c3a1
    Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
 Committer: GitHub <noreply at github.com>
      Date: Tue Apr  7 13:16:44 2026 +0200
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=81345e34

common.h: added guard to avoid warning when ENABLE_NLS is not defined (#2248)

Co-authored-by: Andreas Baumann <mail at andreasbaumann.cc>

---

 plugins/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/common.h b/plugins/common.h
index ef888d08..b3053486 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -193,7 +193,7 @@ enum {
  */
 #include "../gl/gettext.h"
 #define _(String) gettext(String)
-#if !ENABLE_NLS
+#if !defined(ENABLE_NLS) || !ENABLE_NLS
 #	undef textdomain
 #	define textdomain(Domainname) /* empty */
 #	undef bindtextdomain



More information about the Commits mailing list