diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-11-04 10:13:59 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-11-04 10:13:59 (GMT) |
commit | a32fae2595e52296e08d1240fcf93f2161074f62 (patch) | |
tree | a6b1e3a8b762411c6222dc520b2ea0efcd935324 /generic/tclOOIntDecls.h | |
parent | b5f69350e3ff6666d6077535041901c8d04b3617 (diff) | |
parent | 49f8bb2d42c970325160658862b0a7f0e2cd066a (diff) | |
download | tcl-a32fae2595e52296e08d1240fcf93f2161074f62.zip tcl-a32fae2595e52296e08d1240fcf93f2161074f62.tar.gz tcl-a32fae2595e52296e08d1240fcf93f2161074f62.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.
Diffstat (limited to 'generic/tclOOIntDecls.h')
-rw-r--r-- | generic/tclOOIntDecls.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tclOOIntDecls.h b/generic/tclOOIntDecls.h index f0e3ee5..4f70e5b 100644 --- a/generic/tclOOIntDecls.h +++ b/generic/tclOOIntDecls.h @@ -18,6 +18,10 @@ /* !BEGIN!: Do not edit below this line. */ +#ifdef __cplusplus +extern "C" { +#endif + /* * Exported function declarations: */ @@ -121,10 +125,8 @@ typedef struct TclOOIntStubs { void (*tclOOClassSetMixins) (Tcl_Interp *interp, Class *classPtr, int numMixins, Class *const *mixins); /* 15 */ } TclOOIntStubs; -#ifdef __cplusplus -extern "C" { -#endif extern const TclOOIntStubs *tclOOIntStubsPtr; + #ifdef __cplusplus } #endif |