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
F111065386: D22735.id65434.diff
Wed, Feb 26, 10:47 PM
Unknown Object (File)
Fri, Feb 21, 11:50 PM
Unknown Object (File)
Wed, Feb 19, 12:18 AM
Unknown Object (File)
Thu, Feb 6, 4:46 AM
Unknown Object (File)
Wed, Feb 5, 4:38 PM
Unknown Object (File)
Thu, Jan 30, 6:12 AM
Unknown Object (File)
Jan 19 2025, 2:27 AM
Unknown Object (File)
Jan 15 2025, 2:03 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