X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flink.h;h=815018594c777b1513911cc04157e71fb7572015;hb=12590c8bbd04ea484cee86812e2258fbdfca0e59;hp=c30431e9c70209405a11ebb5615cb4b3879d8918;hpb=5d5ab51862cbd010bdf52dc3b04b0967450bcd1a;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