]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Replace __BEGIN_DECLS and __END_DECLS with extern "C". 53/head
authorAnthony G. Basile <blueness@gentoo.org>
Tue, 6 Jul 2021 13:54:47 +0000 (07:54 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 6 Jul 2021 14:38:52 +0000 (08:38 -0600)
commit215974e67a24edf9097507e8707190b6a42c7207
tree1b8a03ef18bb731804960e2161f263897c31041a
parent2610dc9c6f6a337137d0602482e2bd01dea6ebce
Replace __BEGIN_DECLS and __END_DECLS with extern "C".

The macros __BEGIN_DECLS and __END_DECLS are a GNU-ism found in
glibc and uClibc, but not musl.  We replace them by the more general
extern "C" { ... } block exposed only if we have __cplusplus.

Forward ported from a patch by Anthony G. Basile <blueness@gentoo.org>.

Signed-off-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
include/libcgroup/config.h
include/libcgroup/error.h
include/libcgroup/groups.h
include/libcgroup/init.h
include/libcgroup/iterators.h
include/libcgroup/log.h
include/libcgroup/tasks.h
src/bindings/libcgroup.p
src/daemon/cgrulesengd.h
src/libcgroup-internal.h
src/tools/tools-common.h