From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by sourceware.org (Postfix) with ESMTPS id 14FDE3858C2F for ; Tue, 20 Sep 2022 08:43:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 14FDE3858C2F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1036.google.com with SMTP id o99-20020a17090a0a6c00b002039c4fce53so4607788pjo.2 for ; Tue, 20 Sep 2022 01:43:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=+Z3+udNJH98+4AML2iscOnkHda6umDzMFISsryd84GM=; b=lArjVT2d0h2UqBFxHsoH4n2bDB5sjRWwMhEb+1oYrUxcdtyjlxI3qvfafNfQmniCFn gVoREnKZxO5QM2EMEyBhirneXbAN/OBtDwUw5s/o223DrYbRgAnUePwWxllRcbv8yXP9 bAJmQdPWJnzUPuucGXk6/KjDQQPyCOaM8IxWjSEj/cf47Pqi6UkRaBhfb7LuQxG49wjZ Hcui4uNUbY2uPfVps8ldtNv17j9AaBM5JLepcWKZew8J7eceyDgOxqZxn/KDSKCFvaJM FoC+E8ebIZFwrevfAubDmrgpLbCOCqOL+wbU/kI5wfomb/sVSyaGDWakmqP0qxPndLry zJ2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=+Z3+udNJH98+4AML2iscOnkHda6umDzMFISsryd84GM=; b=QLyOS7yKDlu1bUZJGDsu4xegeoDdTdQkVB1V5g5ClAPBN6438hKRUaPBw6IfBPLRu1 j/8c83n+E+BWIcu2jGigHdMo4A2FBhldIxZwjsvXvuvuAm8cdJjJWb9/tpjgET9RzDn8 GntnUghbWCRubJvp+v88muJlDbCWCuJT/eZN7Ry0wG8AuINnTGlohrXfAw9S54bXjG3h yKLm/woB0zk7MXrPH6ZKNqn2MKjgmvD5GbknzF8VP6kZQWXw69oCxQc+jqmFpTz2Y49Z dKcTZzjX/S8176Qug2xRk0W1cWrpZPLU0gmk6bAIuFc3mK58J1/nDWR90i1NYgNHhH6U L+DQ== X-Gm-Message-State: ACrzQf3IcjWs6TUk26ao05ReP+qPRrqMuZSKSQtzkZNrcEHYXG+H91IY ORVXZwSEXNaPu2JFf4v26MRfzCd0DQo= X-Google-Smtp-Source: AMsMyM4ZcnylG6PMLIpTrmdqRleXVqViODyayCF1Se2kLPnR0YKHuL55OzXN5EfSdJ6Ft+hVl9geKQ== X-Received: by 2002:a17:90b:2644:b0:1fa:e0be:4dcb with SMTP id pa4-20020a17090b264400b001fae0be4dcbmr2657406pjb.85.1663663406789; Tue, 20 Sep 2022 01:43:26 -0700 (PDT) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id so16-20020a17090b1f9000b002009db534d1sm873372pjb.24.2022.09.20.01.43.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 01:43:26 -0700 (PDT) From: Yonggang Luo To: elfutils-devel@sourceware.org Cc: Yonggang Luo Subject: [PATCH 3/7] lib: Use NOT_HAVE_LIBINTL to guard if need #include Date: Tue, 20 Sep 2022 16:43:03 +0800 Message-Id: <20220920084307.1696-4-luoyonggang@gmail.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20220920084307.1696-1-luoyonggang@gmail.com> References: <20220920084307.1696-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Signed-off-by: Yonggang Luo --- lib/eu-config.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/eu-config.h b/lib/eu-config.h index c7d7cbb2..5e6c3c72 100644 --- a/lib/eu-config.h +++ b/lib/eu-config.h @@ -52,9 +52,17 @@ # define rwlock_unlock(lock) ((void) (lock)) #endif /* USE_LOCKS */ +#if !defined(NOT_HAVE_LIBINTL) +#include +#endif + /* gettext helper macros. */ #define N_(Str) Str +#if !defined(NOT_HAVE_LIBINTL) #define _(Str) dgettext ("elfutils", Str) +#else +#define _(Str) N_(Str) +#endif /* Compiler-specific definitions. */ #define strong_alias(name, aliasname) \ -- 2.36.1.windows.1