Page MenuHomeFreeBSD

Correctly check for C++17 and higher when declaring timespec_get()
ClosedPublic

Authored by dim on Dec 9 2019, 6:33 PM.
Tags
None
Referenced Files
F153223270: D22735.id65434.diff
Sun, Apr 19, 9:56 PM
Unknown Object (File)
Mon, Apr 13, 5:53 PM
Unknown Object (File)
Sun, Apr 5, 12:26 PM
Unknown Object (File)
Sat, Apr 4, 11:37 AM
Unknown Object (File)
Wed, Mar 25, 1:51 AM
Unknown Object (File)
Mon, Mar 23, 11:45 PM
Unknown Object (File)
Mar 20 2026, 9:02 PM
Unknown Object (File)
Mar 13 2026, 7:04 AM
Subscribers

Details

Summary

In rS338751, the check to declare timespec_get() for C++17 and higher
was incorrectly done against a cplusplus define, while it should have
been __cplusplus.

Fix this by using __cplusplus, and also bump __FreeBSD_version so it
becomes possible to correctly check for timespec_get() in upstream
libc++ headers.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable