diff options
| author | 2023-01-30 13:24:29 -0800 | |
|---|---|---|
| committer | 2023-01-30 13:24:29 -0800 | |
| commit | acd23e19f67341e3aada2710f7dd0b57b59b80e9 (patch) | |
| tree | 8e28e328ea3f224d2c91ac9d2a54fb8acaecbfa4 /libs/gui/LayerState.cpp | |
| parent | 71216198dfcd8194cc4b32ad2ee7f3d3045ac67a (diff) | |
Use extern "C" instead of __BEGIN_DECLS
__BEGIN_DECLS is a glibc implementation detail that has been copied
into bionic. It is provided by sys/cdefs.h, which is included by most
glibc and bionic headers. Musl libc does not define __BEGIN_DECLS,
but we have added a local definition in sys/cdefs.h, but not the
widespread automatic inclusion of sys/cdefs.h.
tipc.h uses __BEGIN_DECLS without including any other headers, so it
will fail for bionic and glibc if it is included first. It will
always fail for musl unless sys/cdefs.h is manually included.
Avoid the problem completely by using extern "C" directly.
Test: builds
Change-Id: Iaec6a7b03b776ff80dc3997de8828b8220622733
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions