From e6a198a09c4b2a002bb8a2baa8f0396f50af0d99 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 17 Sep 2009 04:18:42 +0000 Subject: Compile Scintilla_RegisterClasses, Scintilla_ReleaseResources, and Scintilla_LinkLexers with C linkage so they can be called from C as well as C++. --- include/Scintilla.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 16d2d6910..b5b14678f 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -15,6 +15,10 @@ typedef BOOL bool; #endif +#ifdef __cplusplus +extern "C" { +#endif + #if PLAT_WIN /* Return false on failure: */ bool Scintilla_RegisterClasses(void *hInstance); @@ -22,6 +26,10 @@ bool Scintilla_ReleaseResources(); #endif int Scintilla_LinkLexers(); +#ifdef __cplusplus +} +#endif + /* Here should be placed typedefs for uptr_t, an unsigned integer type large enough to * hold a pointer and sptr_t, a signed integer large enough to hold a pointer. * May need to be changed for 64 bit platforms. */ -- cgit v1.2.3