metag: add extern C to header
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Mon, 23 May 2016 11:54:24 +0000 (07:54 -0400)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Thu, 26 May 2016 10:12:15 +0000 (06:12 -0400)
include/ChangeLog:

2016-05-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

* opcode/metag.h: wrap declarations in extern "C".

include/ChangeLog
include/opcode/metag.h

index 5f72b0f..ea58b99 100644 (file)
@@ -1,3 +1,7 @@
+2016-05-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
+
+       * opcode/metag.h: wrap declarations in extern "C".
+
 2016-05-23  Claudiu Zissulescu  <claziss@synopsys.com>
 
        * opcode/arc.h (insn_subclass_t): Add COND.
index 5bce87e..1ca6d9e 100644 (file)
    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