]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: Allow stand.h to be included in C++ programs
authorWarner Losh <imp@FreeBSD.org>
Sat, 7 Jan 2023 01:39:09 +0000 (18:39 -0700)
committerWarner Losh <imp@FreeBSD.org>
Tue, 24 Jan 2023 21:49:44 +0000 (14:49 -0700)
commit5e4f201c7dedcb891ed98e3916683184a119079e
tree3589eabd32cb073dc57823b3a27efc2fc841f4d3
parent28dc27649b0ea8d0ca2fecd71514ff2cedcdd332
stand: Allow stand.h to be included in C++ programs

Allow stand.h to be included in C++ programs. This is little more than
using our stylized __BEGIN_DECL / __END_DECL around the entire
file. There's no run-time support for C++, so the C++ that can be used
is quite limited. It is enough for libunwind, though.

Sponsored by: Netflix
Reviewed by: jrtc27, kevans
Differential Revision: https://reviews.freebsd.org/D37946

(cherry picked from commit 5cf20707ba79b5c06b26381da0013c65004b53be)
stand/libsa/stand.h