From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 318653858412 for ; Sat, 15 Oct 2022 16:36:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 318653858412 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-x1032.google.com with SMTP id t10-20020a17090a4e4a00b0020af4bcae10so7403650pjl.3 for ; Sat, 15 Oct 2022 09:36:45 -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=juXhx2U6jb0+LqEiAK40GrmfBA0C/46BGBkBg4Z8lD4tN3phrCT/dY8IBbFaj0sJHK pvgRYVuUx5ummBSvX+TkgUtCyoj0rkkTR6QAUi5LiQ2mmzv0vaOs9xfoeZrTWcsm+mZ+ ffDML97XydlZhH0ZS8amElWCBO9CfMvaL+YxWtuUrCv6I6FwuyC8bLg9mLP7aQIW1Vrs FE7f2wF/KLxCteXkn/12QU2fCbTupX+j1v1qmQke7Y344HzUSbhoYNYmGXQXfWhFbJN5 KQ9CuawihFWLoq2EZjcE7+fNnUP5KRVa6ZQFeR4Lo+E3pZyMVYKQBKAFVGjUlV4DcN3x 2sJQ== 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=YLMAGdbOVqkI6M1Rnb4857RbE5UHoH/QBvTw7/nOOdbtUPHnaESwhw++DTIXFW2P2C IJWMpIzNoMm+SmFMElABkVMzlujS5Gh9dZyXeqWkzGWpIG0C8YWIbPAGrFSl3ze8896u cM9lrX1RSjEfFDVJO7+WgK5y7FZ/VRunUwP08AaJu1jTBoaiK2qUQzwJkGxqA53fB7yp bwvB19TTlklrTpzKduUdDHgAsMcOl3Nw6WkrUQ6/z7IrhvCscV3wGNBmXU8lBwLu1T+n ElGMbOLUmao1SglHmRjstdAB60jlU4evKgducsY0XiRqyP2vYp+E1+aW76F9ypAA7n6H vaHQ== X-Gm-Message-State: ACrzQf1dtOkuHGtAxhYZAymTeZHjt5uQxHT4xbpmKuvZELXJa3ijydy0 AWcVTTWPywskDb0NICy2UBODNd6YGHPfTA== X-Google-Smtp-Source: AMsMyM52TXqk1r0gmpSOO2wZtGJL/nRderxsGoxcgPVZreKmwGokmtz6LLt1FNHWOpa83h62xfNvxQ== X-Received: by 2002:a17:902:ab89:b0:17a:67c:b9e9 with SMTP id f9-20020a170902ab8900b0017a067cb9e9mr3417535plr.55.1665851803996; Sat, 15 Oct 2022 09:36:43 -0700 (PDT) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id b5-20020a62a105000000b0056299fd2ba2sm3760622pff.162.2022.10.15.09.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Oct 2022 09:36:43 -0700 (PDT) From: Yonggang Luo To: elfutils-devel@sourceware.org Cc: Yonggang Luo Subject: [PATCH v2 4/7] lib: Use NOT_HAVE_LIBINTL to guard #include Date: Sun, 16 Oct 2022 00:36:22 +0800 Message-Id: <20221015163622.129-4-luoyonggang@gmail.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20221015163622.129-1-luoyonggang@gmail.com> References: <20221015163622.129-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.8 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