Message ID | 20220926091333.272502-1-poulhies@adacore.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp1390108wrt; Mon, 26 Sep 2022 02:14:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wPXHQeiehhTb8kuhPeGECk16Y9wdgTsdadvdHUCw7FNRnjCA7ePlbAOZs2qWJ7wbPieQq X-Received: by 2002:a17:907:d14:b0:781:d294:4bea with SMTP id gn20-20020a1709070d1400b00781d2944beamr16965515ejc.418.1664183673082; Mon, 26 Sep 2022 02:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664183673; cv=none; d=google.com; s=arc-20160816; b=nstQs158IT4qSiEx/xHt5EETcNfBMIhMiqhlDunVd7/foP5X38JmBpAOV+7hJAsyEk 4yq5o5yz/eIuQCZ0skw5nHSPHjXZOQrt0D9q4fLjZlB0Tx9rQQnED0LmV+jNRqPutswT pJD9MC+Vs8wdUgzL/zqkXpqmbMFzCCA3x7rguGsQJyVyfR4eLXKwLsJ+ByZiX1YQMQ70 XgskCfTczVSb1Bl9vdCUtSk0Ig3kjC7EjcJHOXMHhUGOuaVh9E12UGCkN9j6TD3nWtSH bqekaXNGUw5y/Xt9sjS6hYxemajds/u6FbvjY+EGNYrNjn+dbdhMID4Ql4oCDqHUo2XW uXBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Bc3axWaZAhLtXm6n70On1SRHf2g9Fq3TQTCoQ7o/+A4=; b=EbeVC5MfvnTtzJIKBc2h9dqV9QswrvFiJxqWRjQcI5MnkaTkWRXF/iJKhuzxXaKR0B MQMZYf568mzjVhpNzdMn+n+t0V5MB17WvKyG5lD2MXXddsFkpJCR+rfLJPauDGLW/xRe 0a+M2oEr/aFeWmBBsqgvh0csMvFuXskmKskJ1S60U5nXA3TR3HZnfJZ18qGQ9lmqmyfx 8cA8w0abtpJrXI761mroRFDKJ2gIYM/FQ3l6q6VQ5royUk2Jg40joqyF8f1WZeIhsAE2 D3X43m8GoJzNdbG7O02qGhxiOyEhQQll7FEVZ3yKHE97uXc0yveDwCxu7kPzefOYhtKk z1hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=xN54VWYg; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id b2-20020a17090630c200b0073d8830e4c7si14067808ejb.954.2022.09.26.02.14.32 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 02:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=xN54VWYg; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 417B03857B97 for <ouuuleilei@gmail.com>; Mon, 26 Sep 2022 09:14:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 417B03857B97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664183661; bh=Bc3axWaZAhLtXm6n70On1SRHf2g9Fq3TQTCoQ7o/+A4=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=xN54VWYg9kS58rmAozwDWAr8b8rCiqpHOghY7L3/tykiP/gtQ/EBPEv5mzygnfN1Q udbX1i1XVUcwmoKaoMDSxdAuhfGLDB31HFPicJdTWy3EkOOB4ysOOvHM3EhAhUDJ+f WZQmckua5n5fRclTQPTr7XUsoPkze0jFqycZgM20= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id CFC303858C39 for <gcc-patches@gcc.gnu.org>; Mon, 26 Sep 2022 09:13:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CFC303858C39 Received: by mail-wm1-x335.google.com with SMTP id fn7-20020a05600c688700b003b4fb113b86so3379848wmb.0 for <gcc-patches@gcc.gnu.org>; Mon, 26 Sep 2022 02:13:37 -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:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=Bc3axWaZAhLtXm6n70On1SRHf2g9Fq3TQTCoQ7o/+A4=; b=zUklhVtDNmm/UfIEZu8zy71RDSiF7AN8aZ9PWvzbZV6VDQjMFFG/ZfuMzgimRggBE0 tJtpry+yWU2AGymOlEMZ/Jo5kmbMwb+BTaMqiV6iVPAdjQkFKHJSXTr2j7sBrzbU+b+P oWtgWL6IY1bJ86nAGbLScopd9cgKXYAMRbFgHgEKi4AkLwu31dyk9MDJs5awvaFg/zF9 hI5/UmOiexhvZj/5bQrkAEMH/hTWXWA7Sb2+o0XRBeAsIWijg8yZciSPzeXocy3VK2OG EFf4ZhUX7SgTHdMlnPBkpAIuY5dZPQczgTJtWdTIN4DerU51S7AiZEBEIo6ykagtV9zj YnZw== X-Gm-Message-State: ACrzQf2v79a7zsWvIUMHfpq1ThlEPMJbIxo/NTIndDlt9jCqyoC6wwn9 4hoNbGK7By0Wv+l8oR8Rtf0S2x0uf/2jmA== X-Received: by 2002:a05:600c:2b88:b0:3b4:8680:165b with SMTP id j8-20020a05600c2b8800b003b48680165bmr22475620wmc.113.1664183616640; Mon, 26 Sep 2022 02:13:36 -0700 (PDT) Received: from localhost.localdomain (static-176-191-105-132.ftth.abo.bbox.fr. [176.191.105.132]) by smtp.gmail.com with ESMTPSA id u7-20020a056000038700b002258235bda3sm14542447wrf.61.2022.09.26.02.13.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 02:13:36 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [COMMITED] ada: Remove definition of MAXPATHLEN for ancient MinGW Date: Mon, 26 Sep 2022 11:13:33 +0200 Message-Id: <20220926091333.272502-1-poulhies@adacore.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 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> From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> Cc: Piotr Trojanek <trojanek@adacore.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745023059209884502?= X-GMAIL-MSGID: =?utf-8?q?1745023059209884502?= |
Series |
[COMMITED] ada: Remove definition of MAXPATHLEN for ancient MinGW
|
|
Commit Message
Marc Poulhiès
Sept. 26, 2022, 9:13 a.m. UTC
From: Piotr Trojanek <trojanek@adacore.com>
Modern MinGW defines MAXPATHLEN in sys/param.h, so better to use it
directly.
gcc/ada/
* mingw32.h: Remove condition definition of MAXPATHLEN; the include
directive for stdlib.h was most likely intended to provide the
MAX_PATH.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/mingw32.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/gcc/ada/mingw32.h b/gcc/ada/mingw32.h index bf8577bb1d4..a190d51076f 100644 --- a/gcc/ada/mingw32.h +++ b/gcc/ada/mingw32.h @@ -99,10 +99,4 @@ extern UINT __gnat_current_ccs_encoding; #define WS2S(str,wstr,len) strncpy(str,wstr,len) #endif -#include <stdlib.h> - -#ifndef MAXPATHLEN -#define MAXPATHLEN MAX_PATH -#endif - #endif /* _MINGW32_H */