diff options
| author | nyamatongwe <unknown> | 2009-09-17 04:18:42 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2009-09-17 04:18:42 +0000 |
| commit | e6a198a09c4b2a002bb8a2baa8f0396f50af0d99 (patch) | |
| tree | de287b6dff8dd18f210ad4e4fd66d33ecc4c2611 | |
| parent | eabac85ea4e5026f37bdeac89d3bababab0920cc (diff) | |
| download | scintilla-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.h | 8 |
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. */ |
