From: Trevor Saunders Date: Mon, 23 May 2016 11:54:24 +0000 (-0400) Subject: metag: add extern C to header X-Git-Tag: users/hjl/linux/release/2.26.51.0.2~1^2~35^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94740f9c4b20ec88a5e33823a4da13d6da311a22;p=thirdparty%2Fbinutils-gdb.git metag: add extern C to header include/ChangeLog: 2016-05-26 Trevor Saunders * opcode/metag.h: wrap declarations in extern "C". --- diff --git a/include/ChangeLog b/include/ChangeLog index 5f72b0ff8e9..ea58b9985de 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2016-05-26 Trevor Saunders + + * opcode/metag.h: wrap declarations in extern "C". + 2016-05-23 Claudiu Zissulescu * opcode/arc.h (insn_subclass_t): Add COND. diff --git a/include/opcode/metag.h b/include/opcode/metag.h index 5bce87e18d2..1ca6d9edcdf 100644 --- a/include/opcode/metag.h +++ b/include/opcode/metag.h @@ -19,6 +19,10 @@ Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ +#ifdef __cplusplus +extern "C" { +#endif + enum metag_unit { UNIT_CT, @@ -2077,3 +2081,7 @@ static const insn_template metag_optab[] = unsigned int metag_get_set_size_bytes (unsigned int opcode); unsigned int metag_get_set_ext_size_bytes (unsigned int opcode); unsigned int metag_cond_set_size_bytes (unsigned int opcode); + +#ifdef __cplusplus +} +#endif