From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by sourceware.org (Postfix) with ESMTPS id 49414384B807 for ; Thu, 20 Oct 2022 18:27:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 49414384B807 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-pg1-x52d.google.com with SMTP id e129so284427pgc.9 for ; Thu, 20 Oct 2022 11:27:03 -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 :message-id:reply-to; bh=ojn/+pmqFRX7B+bb4fOR9k/GKPxCgUnLphVeLloo544=; b=dgJunpaHMDBEMuitEkdVgz/5mRYNbG1qAxfHM2A00ePE/bPOFPzBA2lXAgBU5I7VVg x6mCigItLSc6eAmw6x/6XpAnBgF51TiEXDjNOPH2SZL3qbCV87+hhloeqc8QFALvS2KM GetCNtDB6+IX9Yke3e2ttBcjbvTviQxxRqtNJc3ReamjRgusCj3qUqzQ6q1GuwHgJCym wcmePpA604PSbxpRK+ccs/jzglZ7Gavbh3nmZJDBIUqkZAoJ2HvbC/dcFBQEX9ANo2jO BvbYA+wO3v2Sm4QpVoMGjNJwhDPhWGCvicWIV0Kki9BM7dkk+D2Sr/uQSf64EKi8/pRc rm/g== 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:message-id:reply-to; bh=ojn/+pmqFRX7B+bb4fOR9k/GKPxCgUnLphVeLloo544=; b=ViRrdXczTKNur6lpuPpnQT/hgWH5EnWJUFjYL7MTGtG3VPBJLy4Uq4bVhhdpB3WNMd dr5RE5IzEO/hXcHskY6qK8Z918vr8h44vFBnniYCr8B3d/gfQwkWVPp1Ztx7dJFw9sCd HgwvXuSqVARCxCHgV8H1Um6HM2YkVOCouRBiMKdXvvv13M6FzBAA1E64QpurjOIy1I1O GAdpr9hRovTl4dBMlQ8nu1juVphg2atOjZW7TEHq7KUj5t/BZeRwicu3Xm5Vv/4DZbp3 iSLALfMmy+A1ytg+NRuRu+MplA4alJQ665KSjnz4L5Z4Xdo1gyztxRjqEKIiuOs9vKpb SfTg== X-Gm-Message-State: ACrzQf2h1NCvqcZFZpWYP4gNGAdglQHLhpHKKpOKKrYYMwT112ArFv7E gT46SOVnG+qJn8/IH3dFZ+dg3mBYH/CWwQ== X-Google-Smtp-Source: AMsMyM4m1xSubUfifOGQEntm/eGVR8FL9zx9/xWPMH+/73ngaeITRUE+KJBMhA/wHeWrJw5lLevDaw== X-Received: by 2002:a63:8141:0:b0:460:5be4:f6a9 with SMTP id t62-20020a638141000000b004605be4f6a9mr12695817pgd.368.1666290421958; Thu, 20 Oct 2022 11:27:01 -0700 (PDT) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id w15-20020a17090a460f00b00202fbd9c21dsm115067pjg.48.2022.10.20.11.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 11:27:01 -0700 (PDT) From: Yonggang Luo To: elfutils-devel@sourceware.org Cc: Yonggang Luo Subject: [PATCH 18/25] lib: Use NOT_HAVE_LIBINTL to guard #include Date: Fri, 21 Oct 2022 02:25:57 +0800 Message-Id: <20221020182603.815-19-luoyonggang@gmail.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20221020182603.815-1-luoyonggang@gmail.com> References: <20221020182603.815-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.3 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: Add NOT_HAVE_LIBINTL macro to disable internationalization, sometimes we have don't want access internationalization such as MSVC, so the macro NOT_HAVE_LIBINTL can help that. Signed-off-by: Yonggang Luo --- lib/eu-config.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/eu-config.h b/lib/eu-config.h index 78a5c4fe..5e6c3c72 100644 --- a/lib/eu-config.h +++ b/lib/eu-config.h @@ -52,10 +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