From: Jon Chesterfield <jonathanchesterfield@gmail.com>
To: musl@lists.openwall.com
Subject: Re: [musl] Alignment attribute in headers
Date: Wed, 24 Apr 2024 10:49:27 +0100 [thread overview]
Message-ID: <CAOUYtQA=5ZRujO_4tA6J94NKpDQnvrrSGu3WMc4arkG19YiOvw@mail.gmail.com> (raw)
In-Reply-To: <CAH8yC8nvDhtbvx63V=Af1oxb+csiR+Bq0TTn-D1Dgq+BuZ72Jw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]
Use in practice and use in documentation don't always align but it seems
you're agreeing that requiring GNU macros to use a Linux specific header is
invalid.
Jon
On Wed, 24 Apr 2024, 08:55 Jeffrey Walton, <noloader@gmail.com> wrote:
>
>
> On Wed, Apr 24, 2024 at 3:40 AM Jon Chesterfield <
> jonathanchesterfield@gmail.com> wrote:
>
>> Re testing GNUC,
>>
>> I'm not sure the macro means "targeting Linux", and it seems totally
>> legitimate that a C compiler which doesn't implement any GNU extensions
>> would not define that macro. Musl is quite a likely choice for a non-gnu
>> compiler that wants to compile code to run against the Linux kernel.
>>
>
> __GNUC__, __GNUC_MINOR__ and __GNUC_PATCHLEVEL__ only means the macros are
> defined by GNU compilers that use the C preprocessor. See <
> https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html>.
>
> The macros don't mean "targeting Linux". They are also defined on OS X
> (Darwin) and Windows.
>
> Jeff
>
[-- Attachment #2: Type: text/html, Size: 1924 bytes --]
prev parent reply other threads:[~2024-04-24 9:49 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-21 3:51 Michael Forney
2024-04-21 4:54 ` Markus Wichmann
2024-04-21 7:16 ` Jₑₙₛ Gustedt
2024-04-21 7:38 ` Markus Wichmann
2024-04-21 10:23 ` Jₑₙₛ Gustedt
2024-04-21 10:31 ` Sam James
2024-04-21 17:40 ` Markus Wichmann
2024-04-21 15:50 ` Thorsten Glaser
2024-04-21 16:44 ` Alexander Monakov
2024-04-21 17:20 ` Markus Wichmann
2024-04-21 18:23 ` Thorsten Glaser
2024-04-21 19:04 ` Michael Forney
2024-04-21 23:48 ` Rich Felker
2024-04-24 0:45 ` Michael Forney
2024-04-24 2:54 ` Markus Wichmann
2024-04-24 7:39 ` Jon Chesterfield
2024-04-24 7:55 ` Jeffrey Walton
2024-04-24 9:49 ` Jon Chesterfield [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOUYtQA=5ZRujO_4tA6J94NKpDQnvrrSGu3WMc4arkG19YiOvw@mail.gmail.com' \
--to=jonathanchesterfield@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).