From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id B036F3858D20 for ; Sat, 28 Jan 2023 03:57:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B036F3858D20 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-wm1-x330.google.com with SMTP id fl11-20020a05600c0b8b00b003daf72fc844so6672809wmb.0 for ; Fri, 27 Jan 2023 19:57:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=r6VCYzbxlcgzzFjdr1YrGBlXV8i0sBCFkjenvvrzA0Y=; b=UDbLy60lJ/1WUjr3hAHushuhw4NOS09ejnaXT2SM193dgITWcx0EbnkYbXOcJfzLP3 b+T6Di57kwT2Gzr+RAf+Rg47rCriDOqqd99WrpekA0dTkF5yOEn1AIXVo+qXc48Ojo4p VqYeMA5fLfNZrJAsqBfucLcg9jHLsuEhzg8vJe66BOH1tY0WsZPnEd+iDZqn7KPVqDlR KDWV0Q/a04QyRLc5Iosm5h8ZTAjCCdlfxmzMNxHDETvAvi97gRDjo3Vdhe14Nrqn6tmo 5rrITMcZr+30B1Yku44I6TDrBd+G8XtTprI5sBfyumBFCofVsDMGtT7lE1oLWnUe2OVB 758Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=r6VCYzbxlcgzzFjdr1YrGBlXV8i0sBCFkjenvvrzA0Y=; b=uPXausVmMYzLFkM4OQJAKjXTkTXC5H7nEQu0GRuJaI4tGLPEqQsFHIMG1PGMR5wPyp n3u3ggGF93JXCMLhWLG5k2DFugWuTIQ1z/605c+Syot9x8lygxXNHlwkPeKYIqcDzUVD UMuuQePs5NfzMpcpI7uRWs6qoqu/rzuAU7pkCN2kxWB++bv4zlXRm+OFoEO/pIhp1+G1 KzTKU/DG3GeOAbHwua18RjA+MZ6+Pz5MKpJt4D09Z19laYnGLjwHt660SEHut+GObBm7 vuT5pEECs4fPrF/7UXWJrvsd9JxEPh0opVWiPANjRj479+p2Qz9cFcZK4YtAx4o/h9Gf p7LQ== X-Gm-Message-State: AFqh2krUQysGOswrs/X6IpMkDfmCk6iGcxOA9r9ciQMCW1aea7sB8oZ4 MlJP3v3n0t1gjshwNAFxxyN2YY1miZrL7bPw6K6XBjCVow4NBrRL X-Google-Smtp-Source: AMrXdXuT1V+uysijwGRShInfs4ycRHOK1Rl7Ki8gwDM1+J6mSmmuS3ARMkZVZJFViFcecRXLKCpzSc2PPjJU5K2bBsU= X-Received: by 2002:a1c:4c17:0:b0:3d9:f3cf:7848 with SMTP id z23-20020a1c4c17000000b003d9f3cf7848mr2058490wmf.53.1674878237887; Fri, 27 Jan 2023 19:57:17 -0800 (PST) MIME-Version: 1.0 From: Mena Makary Date: Sat, 28 Jan 2023 05:57:06 +0200 Message-ID: Subject: [GCC][Windows] header file inclusion on windows To: gcc-help@gcc.gnu.org Content-Type: multipart/alternative; boundary="0000000000006951dd05f34afa1c" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,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: --0000000000006951dd05f34afa1c Content-Type: text/plain; charset="UTF-8" Hello GCC Help Team, Could you please support on the following C code example: #include "header.h" /* Proper file name like on windows file system, No error is expected */ #include "Header.h" /* Same file but H letter is camelcased by mistake, Error is expected */ #include "header.h " /* Same file but a space is added before end of file inclusion by mistake, Error is expected */ The problem here is that the above two issues are not detected by GCC on windows, while could be detected on Linux. Is there any compiler option/flag enables GCC to detect such issues on Windows? Appreciating your support, Regards, Mina Makary --0000000000006951dd05f34afa1c--