summaryrefslogtreecommitdiffstats
path: root/generic/tkDecls.h
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-10-31 08:51:10 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-10-31 08:51:10 (GMT)
commit8418bc7998119a05d0dc4c18467e76e19f63460b (patch)
treeed3f975994e81fe4225ba79db8f1746d427737ec /generic/tkDecls.h
parent70b7b5860a5ad8666ccc1364b0b30c55059e93d1 (diff)
downloadtk-8418bc7998119a05d0dc4c18467e76e19f63460b.zip
tk-8418bc7998119a05d0dc4c18467e76e19f63460b.tar.gz
tk-8418bc7998119a05d0dc4c18467e76e19f63460b.tar.bz2
Put extern "C" guards around all stub table struct definitions,
so it is usable to be used for C++ compilers as well without the danger of modifying the calling convention. For tkDecls.h, ttkDecls.h tkIntXlibDecls.h is was no problem, because tk.h, tkTheme.h and Xlib.h already contain those guards. But not for the other *Decls.h files.
Diffstat (limited to 'generic/tkDecls.h')
-rw-r--r--generic/tkDecls.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkDecls.h b/generic/tkDecls.h
index 6a2cca0..00a3dde 100644
--- a/generic/tkDecls.h
+++ b/generic/tkDecls.h
@@ -25,6 +25,10 @@
/* !BEGIN!: Do not edit below this line. */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Exported function declarations:
*/
@@ -1970,10 +1974,8 @@ typedef struct TkStubs {
void (*tkUnusedStubEntry) (void); /* 275 */
} TkStubs;
-#ifdef __cplusplus
-extern "C" {
-#endif
extern TkStubs *tkStubsPtr;
+
#ifdef __cplusplus
}
#endif