Message ID | 20221020182603.815-19-luoyonggang@gmail.com |
---|---|
State | Superseded |
Headers |
Return-Path: <elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org> 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 65E433865486 for <patchwork@sourceware.org>; Thu, 20 Oct 2022 18:27:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65E433865486 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666290442; bh=ojn/+pmqFRX7B+bb4fOR9k/GKPxCgUnLphVeLloo544=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Help:List-Subscribe:From:Reply-To:From; b=GXUjdkNohcKqwTl4bnoUs9Dr43TUEFr73r3efks58OnaQX/iYbAomvVH0jliE3C7W PjNO1z7SIJHEYaJsewzqzhM/oZ39FAo3+I8sWbGLHRf83jKrI1NRbZD9PQHY2xG4Ye zYms7PUspyB6XVPqxg+zoJtSpUenqkXKrI2aDNUQ= X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org 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 <elfutils-devel@sourceware.org>; Thu, 20 Oct 2022 18:27:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 49414384B807 Received: by mail-pg1-x52d.google.com with SMTP id e129so284427pgc.9 for <elfutils-devel@sourceware.org>; Thu, 20 Oct 2022 11:27:03 -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: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) To: elfutils-devel@sourceware.org Subject: [PATCH 18/25] lib: Use NOT_HAVE_LIBINTL to guard #include <libintl.h> 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 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list <elfutils-devel.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/elfutils-devel/> List-Help: <mailto:elfutils-devel-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=subscribe> From: Yonggang Luo via Elfutils-devel <elfutils-devel@sourceware.org> Reply-To: Yonggang Luo <luoyonggang@gmail.com> Errors-To: elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org Sender: "Elfutils-devel" <elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Patches for building with mingw/gcc msvc/clang-cl
|
|
Commit Message
Yonggang Luo
Oct. 20, 2022, 6:25 p.m. UTC
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 <luoyonggang@gmail.com>
---
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 <libintl.h> +#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) \