aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-23 07:54:24 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-26 06:12:15 -0400
commit94740f9c4b20ec88a5e33823a4da13d6da311a22 (patch)
tree0f94097f58a45eb538e6ce887b91eb252e6fe8be /include
parentd7b61136f9b7ace0c66a16ae4085cbef18223c0a (diff)
downloadgdb-94740f9c4b20ec88a5e33823a4da13d6da311a22.zip
gdb-94740f9c4b20ec88a5e33823a4da13d6da311a22.tar.gz
gdb-94740f9c4b20ec88a5e33823a4da13d6da311a22.tar.bz2
metag: add extern C to header
include/ChangeLog: 2016-05-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * opcode/metag.h: wrap declarations in extern "C".
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/opcode/metag.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 5f72b0f..ea58b99 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -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.
diff --git a/include/opcode/metag.h b/include/opcode/metag.h
index 5bce87e..1ca6d9e 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