aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-09-17 04:18:42 +0000
committernyamatongwe <unknown>2009-09-17 04:18:42 +0000
commite6a198a09c4b2a002bb8a2baa8f0396f50af0d99 (patch)
treede287b6dff8dd18f210ad4e4fd66d33ecc4c2611
parenteabac85ea4e5026f37bdeac89d3bababab0920cc (diff)
downloadscintilla-mirror-e6a198a09c4b2a002bb8a2baa8f0396f50af0d99.tar.gz
Compile Scintilla_RegisterClasses, Scintilla_ReleaseResources, and
Scintilla_LinkLexers with C linkage so they can be called from C as well as C++.
-rw-r--r--include/Scintilla.h8
1 files changed, 8 insertions, 0 deletions
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. */