Module: monitoring-plugins
    Branch: master
    Commit: 81345e3487b85712287efc851e67ca60da59c3a1
    Author: Lorenz Kästle <[email protected]>
 Committer: GitHub <[email protected]>
      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 <[email protected]>

---

 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

Reply via email to