]> git.ipfire.org Git - thirdparty/shadow.git/commit
Make libsubid more easily usable from C++
authorAlois Wohlschlager <alois1@gmx-topmail.de>
Wed, 19 Jan 2022 10:39:53 +0000 (11:39 +0100)
committerSerge Hallyn <serge@hallyn.com>
Wed, 19 Jan 2022 16:05:12 +0000 (10:05 -0600)
commit9a780cf22b680631d7684f49b2914dc27684500a
tree8bec02789c34159d994ec85b0153d8b3d143bbfd
parentf1f1678e13aa3ae49bdb139efaa2c5bc53dcfe92
Make libsubid more easily usable from C++

C++ requires extern "C" linkage specification to call functions from a C
library. Enclose the function definitions in subid.h in an extern "C"
block if compiling in C++ mode to achieve this.

Signed-off-by: Alois Wohlschlager <alois1@gmx-topmail.de>
libsubid/subid.h.in