tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Use of feature test macros



    Date:        Sat, 2 Nov 2024 19:57:04 -0400 (EDT)
    From:        Mouse <mouse%Rodents-Montreal.ORG@localhost>
    Message-ID:  <202411022357.TAA06133%Stone.Rodents-Montreal.ORG@localhost>


  | 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
  | probably the point of the -0.)

It is, and it is actually the common case, essentially none of
NetBSD builds with _POSIX_C_SOURCE or _XOPEN_SOURCE or ...
defined (just _NETBSD_SOURCE).

So yes, it is worth bothering with (and FWIW for some of these, though
not I believe _POSIX_C_SOURCE back in the past they were just defined,
or not defined, only more recently (like the past couple of decades)
did values start to be assigned).

kre



Home | Main Index | Thread Index | Old Index