On Sat, Nov 02, 2024 at 10:36:10PM +0100, Roland Illig wrote:
> In the system headers, we use this pattern a lot:
> > #if (_POSIX_C_SOURCE - 0 >= 200809L) || defined(_NETBSD_SOURCE)
>
> Are the parentheses around the first condition really necessary? If so,
> for which cases?
>
> Is the "-
On Sun, Nov 03, 2024 at 02:02:59 +0100, Roland Illig wrote:
> Am 03.11.2024 um 00:52 schrieb Robert Elz:
> > Date:Sat, 2 Nov 2024 22:36:10 +0100
> > From:Roland Illig
> >
> > | Is the "- 0" in the first expression really necessary? If so, for which
> > | cases?
> >
> >
Am 03.11.2024 um 00:52 schrieb Robert Elz:
> Date:Sat, 2 Nov 2024 22:36:10 +0100
> From:Roland Illig
>
> | Is the "- 0" in the first expression really necessary? If so, for which
> | cases?
>
> When _POSIX_C_SOURCE is undefined (or defined to nothing).
> That is the sta
Date:Sat, 2 Nov 2024 19:57:04 -0400 (EDT)
From:Mouse
Message-ID: <202411022357.taa06...@stone.rodents-montreal.org>
| The case where _POSIX_C_SOURCE is not defined at all. (Whether that
| case is worth bothering with, that's arguable. But I think that's
| pro
> In the system headers, we use this pattern a lot:
>> #if (_POSIX_C_SOURCE - 0 >= 200809L) || defined(_NETBSD_SOURCE)
> Are the parentheses around the first condition really necessary? If
> so, for which cases?
Probably not...I *think*.
> Is the "- 0" in the first expression really necessary?
Date:Sat, 2 Nov 2024 22:36:10 +0100
From:Roland Illig
Message-ID: <852461a5-c852-40d0-a810-d377306b8...@gmx.de>
| In the system headers, we use this pattern a lot:
| > #if (_POSIX_C_SOURCE - 0 >= 200809L) || defined(_NETBSD_SOURCE)
|
| Are the parentheses arou
In the system headers, we use this pattern a lot:
> #if (_POSIX_C_SOURCE - 0 >= 200809L) || defined(_NETBSD_SOURCE)
Are the parentheses around the first condition really necessary? If so,
for which cases?
Is the "- 0" in the first expression really necessary? If so, for which
cases?
If they aren