]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r355568:
authorDimitry Andric <dim@FreeBSD.org>
Thu, 12 Dec 2019 18:16:32 +0000 (18:16 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Thu, 12 Dec 2019 18:16:32 +0000 (18:16 +0000)
commit76011e8367fb6cbc4da1d4ea6a27dd106e462d25
treecfd861227eb282cd96a9894827cbb815bc1470a1
parent47f3b3942e7a4598be5bff30aa4eb94b31a9faa0
MFC r355568:

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

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.

Reviewed by: brooks, emaste
Differential Revision: https://reviews.freebsd.org/D22735
include/time.h
sys/sys/param.h