diff options
| author | nyamatongwe <devnull@localhost> | 2009-09-17 04:18:42 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-09-17 04:18:42 +0000 |
| commit | c5336a3435d3b237318cc31de66448709c683a9a (patch) | |
| tree | de287b6dff8dd18f210ad4e4fd66d33ecc4c2611 | |
| parent | 58310a7743970eb0f5d094389cbbdb63648b36fe (diff) | |
| download | scintilla-mirror-c5336a3435d3b237318cc31de66448709c683a9a.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. */ |
