From patchwork Tue Sep 20 08:43:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yonggang Luo X-Patchwork-Id: 57791 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A43263857C58 for ; Tue, 20 Sep 2022 08:43:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A43263857C58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663663418; bh=+Z3+udNJH98+4AML2iscOnkHda6umDzMFISsryd84GM=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Help:List-Subscribe:From:Reply-To:From; b=D0PifzPpbDdYnro71M1kVU5o54jG7rK3eSQspeWqiqpq94fjUa5isn78bs/ek439w 9ouKs5DclR9xLZsWB49p1QmhyYTxWV7UEJzAmRZwWWq222FALLmuko/2jJkfj8S3lP 6IDJESZmLcDZvoJr5KQZkwvV4LKWyapcrDam9+Jw= X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org 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 Received: by mail-pj1-x1036.google.com with SMTP id o99-20020a17090a0a6c00b002039c4fce53so4607788pjo.2 for ; Tue, 20 Sep 2022 01:43:28 -0700 (PDT) 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) To: elfutils-devel@sourceware.org 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 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 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-Patchwork-Original-From: Yonggang Luo via Elfutils-devel From: Yonggang Luo Reply-To: Yonggang Luo Errors-To: elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org Sender: "Elfutils-devel" 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) \