diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-11-04 10:02:58 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-11-04 10:02:58 (GMT) |
commit | c40e4c7c972fcd4207f7bb20f658c84826960da8 (patch) | |
tree | 99f9f484f4fa56f4a9cbd95b334ed715b15b66ab /generic/tclIntDecls.h | |
parent | e4211a700baf69176d9b973a2c27f1bec2efb432 (diff) | |
download | tcl-c40e4c7c972fcd4207f7bb20f658c84826960da8.zip tcl-c40e4c7c972fcd4207f7bb20f658c84826960da8.tar.gz tcl-c40e4c7c972fcd4207f7bb20f658c84826960da8.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 it was no problem, because tcl.h already contains those guards. But for the other *Decls.h files (e.g. tclTomMathDecls.h) it was not correct.
FossilOrigin-Name: e0986c290fcf472fcc0f40d9c501020df552c14e
Diffstat (limited to 'generic/tclIntDecls.h')
-rw-r--r-- | generic/tclIntDecls.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tclIntDecls.h b/generic/tclIntDecls.h index 1dc797a..e4e85ad 100644 --- a/generic/tclIntDecls.h +++ b/generic/tclIntDecls.h @@ -50,6 +50,10 @@ /* !BEGIN!: Do not edit below this line. */ +#ifdef __cplusplus +extern "C" { +#endif + /* * Exported function declarations: */ @@ -1309,10 +1313,8 @@ typedef struct TclIntStubs { char * (*tclDoubleDigits) (double dv, int ndigits, int flags, int *decpt, int *signum, char **endPtr); /* 249 */ } TclIntStubs; -#ifdef __cplusplus -extern "C" { -#endif extern TclIntStubs *tclIntStubsPtr; + #ifdef __cplusplus } #endif |