#ifndef _LINK_H
#define _LINK_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <elf.h>
#define __NEED_size_t
#define __NEED_uint32_t
#define ElfW(type) Elf32_ ## type
#endif
-/* this is the same everywhere except alpha and s390 */
-typedef uint32_t Elf_Symndx;
+#include <bits/link.h>
struct dl_phdr_info {
ElfW(Addr) dlpi_addr;
int dl_iterate_phdr(int (*)(struct dl_phdr_info *, size_t, void *), void *);
+#ifdef __cplusplus
+}
+#endif
+
#endif