X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flink.h;h=815018594c777b1513911cc04157e71fb7572015;hb=0ab97350f01b42de0f9fd811ee08653169661859;hp=c30431e9c70209405a11ebb5615cb4b3879d8918;hpb=26cf9c3c6b8dd8d8c94867fefaac64bac7df02a4;p=musl diff --git a/include/link.h b/include/link.h index c30431e9..81501859 100644 --- a/include/link.h +++ b/include/link.h @@ -1,6 +1,10 @@ #ifndef _LINK_H #define _LINK_H +#ifdef __cplusplus +extern "C" { +#endif + #include #define __NEED_size_t #define __NEED_uint32_t @@ -12,8 +16,7 @@ #define ElfW(type) Elf32_ ## type #endif -/* this is the same everywhere except alpha and s390 */ -typedef uint32_t Elf_Symndx; +#include struct dl_phdr_info { ElfW(Addr) dlpi_addr; @@ -43,4 +46,8 @@ struct r_debug { int dl_iterate_phdr(int (*)(struct dl_phdr_info *, size_t, void *), void *); +#ifdef __cplusplus +} +#endif + #endif