--- elfutils-0.179/libelf/elf.h 2020-03-30 07:17:45.000000000 -0500 +++ elfutils-0.179/libelf/elf.h 2020-04-17 03:48:44.199416141 -0500 @@ -21,7 +21,9 @@ #include -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif /* Standard ELF types. */ @@ -4007,6 +4009,8 @@ enum #define R_NDS32_TLS_TPOFF 102 #define R_NDS32_TLS_DESC 119 -__END_DECLS +#ifdef __cplusplus +} +#endif #endif /* elf.h */