diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-11-04 10:13:59 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-11-04 10:13:59 (GMT) |
commit | ee88f95355af39c601c39e077aabe97bc9d36ad8 (patch) | |
tree | 70ea86cd3878462811dd159a218f589f035e6cf3 /generic/tclDecls.h | |
parent | 49520316f34e6ce731673d922c3e3da6810cbe81 (diff) | |
parent | c40e4c7c972fcd4207f7bb20f658c84826960da8 (diff) | |
download | tcl-ee88f95355af39c601c39e077aabe97bc9d36ad8.zip tcl-ee88f95355af39c601c39e077aabe97bc9d36ad8.tar.gz tcl-ee88f95355af39c601c39e077aabe97bc9d36ad8.tar.bz2 |
Put extern "C" guards around all stub table struct definitions, so it is usable for C++ compilers as well without the danger of modifying the calling convention.
For tclDecls.h and tclOODecls.h it was no problem, because tcl.h and tclOO.h already contain those guards. But for the other *Decls.h files (e.g. tclTomMathDecls.h) it was not correct.
FossilOrigin-Name: af0f607adaf6345818591f4a2e1ab901200a86f6
Diffstat (limited to 'generic/tclDecls.h')
-rw-r--r-- | generic/tclDecls.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tclDecls.h b/generic/tclDecls.h index 4d40be1..830c998 100644 --- a/generic/tclDecls.h +++ b/generic/tclDecls.h @@ -31,6 +31,10 @@ /* !BEGIN!: Do not edit below this line. */ +#ifdef __cplusplus +extern "C" { +#endif + /* * Exported function declarations: */ @@ -2479,10 +2483,8 @@ typedef struct TclStubs { void (*tcl_ZlibStreamSetCompressionDictionary) (Tcl_ZlibStream zhandle, Tcl_Obj *compressionDictionaryObj); /* 630 */ } TclStubs; -#ifdef __cplusplus -extern "C" { -#endif extern const TclStubs *tclStubsPtr; + #ifdef __cplusplus } #endif |