edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] [PATCH 1/4] Add check to eb.h so functions work in c++
@ 2013-12-24 15:38 Adam Thompson
  2013-12-24 15:38 ` [Edbrowse-dev] [PATCH 2/4] Alter bool typedef to eb_bool in eb.h Adam Thompson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Adam Thompson @ 2013-12-24 15:38 UTC (permalink / raw)
  To: edbrowse-dev

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-24 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-24 15:38 [Edbrowse-dev] [PATCH 1/4] Add check to eb.h so functions work in c++ Adam Thompson
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

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).