]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Replace __BEGIN_DECLS and __END_DECLS with extern "C". 55/head
authorAnthony G. Basile <blueness@gentoo.org>
Tue, 6 Jul 2021 18:42:54 +0000 (12:42 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 6 Jul 2021 18:43:06 +0000 (12:43 -0600)
commitc7fd9fca15b894d2f2f09c304d1a5971a91675bf
treee38e8c56366b9e5de1ef549e224e01be49d2f227
parent22d813afb24fb8b168e2e17ddac343ed86c2aa86
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>
(cherry picked from commit 215974e67a24edf9097507e8707190b6a42c7207)
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