Message ID | 20241011145306.1322737-1-jwakely@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=AA1jKG2H; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XQ8lB0dZ0z1xtv for <incoming@patchwork.ozlabs.org>; Sat, 12 Oct 2024 01:53:42 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 276F8385AC38 for <incoming@patchwork.ozlabs.org>; Fri, 11 Oct 2024 14:53:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 56D6E3857014 for <gcc-patches@gcc.gnu.org>; Fri, 11 Oct 2024 14:53:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 56D6E3857014 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 56D6E3857014 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728658397; cv=none; b=g+ls0VTr1DAHZxTZRWiVwiaSO1Oj0lvADDytwNsI9GL1isfrs/p5psVfpNKgFLf6hT5MlmzfwfCPRCnhlWfJoClj20NhrdxIOt5nP/kgqPFDRen3orY1ZzcHE2Bk6wxS65B2MDb7qt9BhcEJ5XyV17+zuYKcodoaLbobIoPllMw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728658397; c=relaxed/simple; bh=np2BdzIHljV6nLP5yB1bB5e/EfdkYhAHYq01xWcR/h8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=j1HXygAvpMF2N10UcpDsrwgw0nSXzkcwHq/B+xyfYe99/5rZBM8RSCfc+v65kHsBk8yYtogLJQqdDaSuTBBmNXUxzVBbw/nvL421ywLzec5STiPCVq6M3ssnz0j3oG2n7MDJs0W0NfiRHA2IBdSYs6tbEPZ+wMBPfieDpX7IN1w= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1728658393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UFDYmlwO0ca2pt3eqqJpyWWEJnTDFvrA4ulN440Wxeg=; b=AA1jKG2HDM4KmVUEcrqZT1efvIjINLZ+F2I2/zEo5LPzVfU1+tQFRA1Q5nUujq63iZJb4K wnVUPMq/EBF2ccXZ0+sYeJBcIjE2OBA4S0MhnObdg+jV7/EANyy5a4p5r/asgh+wV9ErZQ av7l7CliMPh4kcj8aDPumMANr1i5osk= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-686-wxAnHk2ZOwCCN-IMsQ8WNQ-1; Fri, 11 Oct 2024 10:53:09 -0400 X-MC-Unique: wxAnHk2ZOwCCN-IMsQ8WNQ-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DEB1F19560BA; Fri, 11 Oct 2024 14:53:08 +0000 (UTC) Received: from localhost (unknown [10.42.28.27]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 271B61956089; Fri, 11 Oct 2024 14:53:07 +0000 (UTC) From: Jonathan Wakely <jwakely@redhat.com> To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Use appropriate feature test macro for std::byte Date: Fri, 11 Oct 2024 15:53:03 +0100 Message-ID: <20241011145306.1322737-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[committed] libstdc++: Use appropriate feature test macro for std::byte
|
expand
|
diff --git a/libstdc++-v3/include/bits/cpp_type_traits.h b/libstdc++-v3/include/bits/cpp_type_traits.h index 19bf1edf647..060652afb18 100644 --- a/libstdc++-v3/include/bits/cpp_type_traits.h +++ b/libstdc++-v3/include/bits/cpp_type_traits.h @@ -414,7 +414,7 @@ __INT_N(__GLIBCXX_TYPE_INT_N_3) typedef __true_type __type; }; -#if __cplusplus >= 201703L +#ifdef __glibcxx_byte // C++ >= 17 enum class byte : unsigned char; template<>