Re: iostream headers and _POSIX_C_SOURCE

2021-03-09 Thread Jonathan Gray
On Tue, Mar 09, 2021 at 01:41:25AM -0700, Anthony J. Bentley wrote: > Hi, > > When updating a port I came across a weird compile error within iostream > if _POSIX_C_SOURCE is set. 200112 and 200809 both error out in different > ways. This looks like the same problem as

iostream headers and _POSIX_C_SOURCE

2021-03-09 Thread Anthony J. Bentley
Hi, When updating a port I came across a weird compile error within iostream if _POSIX_C_SOURCE is set. 200112 and 200809 both error out in different ways. $ cat foo.cc #include int main() {} $ clang++ -D_POSIX_C_SOURCE=200112 foo.cc In file included from foo.cc:1: In file included from