diff options
author | Pedro Alves <palves@redhat.com> | 2015-02-11 10:04:47 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-02-11 10:04:47 +0000 |
commit | 55172d69d08941ecb3bb1abd640f22abca10de47 (patch) | |
tree | e727a26c1769b18197b714a443972a4f818a2cf0 /bfd/mach-o.h | |
parent | Fix adjust_pc_after_break, remove still current thread check (diff) | |
download | binutils-gdb-55172d69d08941ecb3bb1abd640f22abca10de47.tar.gz binutils-gdb-55172d69d08941ecb3bb1abd640f22abca10de47.tar.bz2 binutils-gdb-55172d69d08941ecb3bb1abd640f22abca10de47.zip |
Wrap BFD headers in extern "C"
These were the BFD changes needed for building a C++ GDB with
--enable-targets=all, on x86_64 Fedora 20.
For libbfd.h and libcoff.h, this does same as already done when
generating bfd.h: open extern "C" in the -in.h header, and close it
from the Makefile.
bfd/doc/ChangeLog:
2015-02-11 Pedro Alves <palves@redhat.com>
* Makefile.am (libbfd.h, libcoff.h): Close extern "C" scope.
* Makefile.in: Regenerate.
bfd/ChangeLog:
2015-02-11 Pedro Alves <palves@redhat.com>
* libbfd-in.h [__cplusplus]: Open extern "C" scope.
* libcoff-in.h [__cplusplus]: Open extern "C" scope.
* libbfd.h: Regenerate.
* libcoff.h: Regenerate.
* elf-bfd.h [__cplusplus]: Wrap in extern "C".
* mach-o.h [__cplusplus]: Wrap in extern "C".
* som.h [__cplusplus]: Wrap in extern "C".
Diffstat (limited to 'bfd/mach-o.h')
-rw-r--r-- | bfd/mach-o.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h index bc694ba5d44..0445398932a 100644 --- a/bfd/mach-o.h +++ b/bfd/mach-o.h @@ -24,6 +24,10 @@ #include "bfd.h" #include "mach-o/loader.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef struct bfd_mach_o_header { unsigned long magic; @@ -746,4 +750,8 @@ bfd_mach_o_backend_data; #define SYM_MACHO_FIELDS_UNSET ((bfd_vma) -1) #define SYM_MACHO_FIELDS_NOT_VALIDATED ((bfd_vma) -2) +#ifdef __cplusplus +} +#endif + #endif /* _BFD_MACH_O_H_ */ |