[PATCH] Allow elf header to be used when __BEGIN_DECLS and __END_DECLS aren't defined.

Florian Weimer fweimer@redhat.com
Tue Oct 27 07:46:06 GMT 2020

* Érico Nogueira via Libc-alpha:

> This is mostly an initial PoC, and an additional comment for why this
> is needed could be added to the file.
> I accidentally sent the wrong patch a while ago, sorry!

extern "C++" does not have any effect for this header because it does
not declare anything that has language linkage.

I think you need to remove <features.h> to make the file self-contained.

Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill

More information about the Elfutils-devel mailing list