public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: tbsaunde+binutils@tbsaunde.org
To: binutils@sourceware.org
Cc: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Subject: [PATCH] metag: add extern C to header
Date: Wed, 25 May 2016 05:11:00 -0000	[thread overview]
Message-ID: <1464153390-12776-1-git-send-email-tbsaunde+binutils@tbsaunde.org> (raw)

From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>

Hi,

seems kind of obvious if we think its reasonable to include these headers from C++.

built and regtested metag-elf, ok?

Trev

include/ChangeLog:

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

	* opcode/metag.h: wrap declarations in extern "C".
---
 include/opcode/metag.h | 8 ++++++++
 1 file changed, 8 insertions(+)

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
-- 
2.8.1

             reply	other threads:[~2016-05-25  5:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-25  5:11 tbsaunde+binutils [this message]
2016-05-25 14:42 ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1464153390-12776-1-git-send-email-tbsaunde+binutils@tbsaunde.org \
    --to=tbsaunde+binutils@tbsaunde.org \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).