summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMathDecls.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-04 10:02:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-04 10:02:58 (GMT)
commit49f8bb2d42c970325160658862b0a7f0e2cd066a (patch)
tree99f9f484f4fa56f4a9cbd95b334ed715b15b66ab /generic/tclTomMathDecls.h
parent5873d26c7268ee5af9f31c126c64b4350736c458 (diff)
downloadtcl-49f8bb2d42c970325160658862b0a7f0e2cd066a.zip
tcl-49f8bb2d42c970325160658862b0a7f0e2cd066a.tar.gz
tcl-49f8bb2d42c970325160658862b0a7f0e2cd066a.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/tclTomMathDecls.h')
-rw-r--r--generic/tclTomMathDecls.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tclTomMathDecls.h b/generic/tclTomMathDecls.h
index 04a23f3..056ad85 100644
--- a/generic/tclTomMathDecls.h
+++ b/generic/tclTomMathDecls.h
@@ -134,6 +134,10 @@
/* !BEGIN!: Do not edit below this line. */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Exported function declarations:
*/
@@ -538,10 +542,8 @@ typedef struct TclTomMathStubs {
int (*tclBN_mp_cnt_lsb) (mp_int *a); /* 63 */
} TclTomMathStubs;
-#ifdef __cplusplus
-extern "C" {
-#endif
extern TclTomMathStubs *tclTomMathStubsPtr;
+
#ifdef __cplusplus
}
#endif