diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-11-04 10:02:58 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-11-04 10:02:58 (GMT) |
| commit | 25b280696ac82327cd05c6f30db9989e903c313c (patch) | |
| tree | 99f9f484f4fa56f4a9cbd95b334ed715b15b66ab /generic/tclIntPlatDecls.h | |
| parent | ba6e389573e0e71f8363e6a0c64e1dc53b4d5012 (diff) | |
| download | tcl-25b280696ac82327cd05c6f30db9989e903c313c.zip tcl-25b280696ac82327cd05c6f30db9989e903c313c.tar.gz tcl-25b280696ac82327cd05c6f30db9989e903c313c.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.
Diffstat (limited to 'generic/tclIntPlatDecls.h')
| -rw-r--r-- | generic/tclIntPlatDecls.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tclIntPlatDecls.h b/generic/tclIntPlatDecls.h index 1e68c9c..80dd2ad 100644 --- a/generic/tclIntPlatDecls.h +++ b/generic/tclIntPlatDecls.h @@ -37,6 +37,10 @@ /* !BEGIN!: Do not edit below this line. */ +#ifdef __cplusplus +extern "C" { +#endif + /* * Exported function declarations: */ @@ -533,10 +537,8 @@ typedef struct TclIntPlatStubs { #endif /* MACOSX */ } TclIntPlatStubs; -#ifdef __cplusplus -extern "C" { -#endif extern TclIntPlatStubs *tclIntPlatStubsPtr; + #ifdef __cplusplus } #endif |
