edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Adam Thompson <arthompson1990@gmail.com>
To: edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] [PATCH 1/4] Add check to eb.h so functions work in c++
Date: Tue, 24 Dec 2013 15:38:25 +0000	[thread overview]
Message-ID: <1387899508-30407-1-git-send-email-arthompson1990@gmail.com> (raw)

---
 src/eb.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/eb.h b/src/eb.h
index 03cda4e..c5f2098 100644
--- a/src/eb.h
+++ b/src/eb.h
@@ -5,7 +5,10 @@
 
 #ifndef EB_H
 #define EB_H 1
-
+/* needed when compiling under c++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
 /* the symbol DOSLIKE is used to conditionally compile those constructs
  * that are common to DOS and NT, but not typical of Unix. */
 #ifdef MSDOS
@@ -377,4 +380,7 @@ extern void *jdoc;		/* javascript document object */
 /* Symbolic constants for language independent messages */
 #include "messages.h"
 
+#ifdef __cplusplus
+}
+#endif
 #endif
-- 
1.8.5.2.297.g3e57c29


             reply	other threads:[~2013-12-24 15:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-24 15:38 Adam Thompson [this message]
2013-12-24 15:38 ` [Edbrowse-dev] [PATCH 2/4] Alter bool typedef to eb_bool in eb.h Adam Thompson
2013-12-24 15:38 ` [Edbrowse-dev] [PATCH 3/4] Alter c files to use new eb_bool typedef Adam Thompson
2013-12-24 15:38 ` [Edbrowse-dev] [PATCH 4/4] Add ifdef guard to js.h Adam Thompson

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=1387899508-30407-1-git-send-email-arthompson1990@gmail.com \
    --to=arthompson1990@gmail.com \
    --cc=edbrowse-dev@lists.the-brannons.com \
    /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 NNTP newsgroup(s).