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 | dd3a00dac4f900de44aa2bf8fc6aeab39c9dd7ca (patch) | |
tree | a6b1e3a8b762411c6222dc520b2ea0efcd935324 /generic/tclPlatDecls.h | |
parent | 9e746d7f5852b2642116ef6413fa77bbee14f0df (diff) | |
parent | 010943474bbcde5b833c6e406b47e9d90a385c3a (diff) | |
download | tcl-dd3a00dac4f900de44aa2bf8fc6aeab39c9dd7ca.zip tcl-dd3a00dac4f900de44aa2bf8fc6aeab39c9dd7ca.tar.gz tcl-dd3a00dac4f900de44aa2bf8fc6aeab39c9dd7ca.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/tclPlatDecls.h')
-rw-r--r-- | generic/tclPlatDecls.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tclPlatDecls.h b/generic/tclPlatDecls.h index e9b92fe..681854d 100644 --- a/generic/tclPlatDecls.h +++ b/generic/tclPlatDecls.h @@ -42,6 +42,10 @@ /* !BEGIN!: Do not edit below this line. */ +#ifdef __cplusplus +extern "C" { +#endif + /* * Exported function declarations: */ @@ -81,10 +85,8 @@ typedef struct TclPlatStubs { #endif /* MACOSX */ } TclPlatStubs; -#ifdef __cplusplus -extern "C" { -#endif extern const TclPlatStubs *tclPlatStubsPtr; + #ifdef __cplusplus } #endif |