summaryrefslogtreecommitdiffstats
path: root/generic/tkIntDecls.h
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2013-10-31 09:27:11 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2013-10-31 09:27:11 (GMT)
commit0190f2b695fcb8c0bc908f7b5a66a524152dc564 (patch)
treeb0c5ab37fa9ac435be51a5019b478964c876194b /generic/tkIntDecls.h
parent71125577df43a7ad6c413f74a9a1f04c622829ce (diff)
parent4f4702ea0743ea4f2279c3e4f422813b8ff196f3 (diff)
downloadtk-0190f2b695fcb8c0bc908f7b5a66a524152dc564.zip
tk-0190f2b695fcb8c0bc908f7b5a66a524152dc564.tar.gz
tk-0190f2b695fcb8c0bc908f7b5a66a524152dc564.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. FossilOrigin-Name: 83a9d727a1284576c062f2e0f07cf0fda1e0c6ef
Diffstat (limited to 'generic/tkIntDecls.h')
-rw-r--r--generic/tkIntDecls.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkIntDecls.h b/generic/tkIntDecls.h
index 586419c..3c37922 100644
--- a/generic/tkIntDecls.h
+++ b/generic/tkIntDecls.h
@@ -35,6 +35,10 @@ struct TkSharedText;
/* !BEGIN!: Do not edit below this line. */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Exported function declarations:
*/
@@ -765,10 +769,8 @@ typedef struct TkIntStubs {
void (*tkDrawAngledChars) (Display *display, Drawable drawable, GC gc, Tk_Font tkfont, const char *source, int numBytes, double x, double y, double angle); /* 184 */
} TkIntStubs;
-#ifdef __cplusplus
-extern "C" {
-#endif
extern const TkIntStubs *tkIntStubsPtr;
+
#ifdef __cplusplus
}
#endif