From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ip6-localhost (8.3.3.3.0.d.e.f.f.f.2.d.4.2.2.0.5.9.a.d.8.a.b.f.0.b.8.0.1.0.0.2.ip6.arpa [IPv6:2001:8b0:fba8:da95:224:d2ff:fed0:3338]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 2D48977AD7 for ; Tue, 24 Dec 2013 07:38:46 -0800 (PST) Received: from adam by ip6-localhost with local (Exim 4.82) (envelope-from ) id 1VvU46-0007xc-85; Tue, 24 Dec 2013 15:38:38 +0000 From: Adam Thompson To: edbrowse-dev@lists.the-brannons.com Date: Tue, 24 Dec 2013 15:38:25 +0000 Message-Id: <1387899508-30407-1-git-send-email-arthompson1990@gmail.com> X-Mailer: git-send-email 1.8.5.2.297.g3e57c29 Subject: [Edbrowse-dev] [PATCH 1/4] Add check to eb.h so functions work in c++ X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Dec 2013 15:38:46 -0000 --- 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