diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-31 09:27:11 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-31 09:27:11 (GMT) |
commit | 3f70347b4b061f2da308565d2a850d5f0fdf8dcf (patch) | |
tree | b0c5ab37fa9ac435be51a5019b478964c876194b /generic/tkIntPlatDecls.h | |
parent | 975dc4a26d2d686c80b5f06ef0f218e5e8051503 (diff) | |
parent | 4f970286ec90b02eaf3ad950648ca61a79c193e9 (diff) | |
download | tk-3f70347b4b061f2da308565d2a850d5f0fdf8dcf.zip tk-3f70347b4b061f2da308565d2a850d5f0fdf8dcf.tar.gz tk-3f70347b4b061f2da308565d2a850d5f0fdf8dcf.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/tkIntPlatDecls.h')
-rw-r--r-- | generic/tkIntPlatDecls.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkIntPlatDecls.h b/generic/tkIntPlatDecls.h index d6d136e..141f743 100644 --- a/generic/tkIntPlatDecls.h +++ b/generic/tkIntPlatDecls.h @@ -26,6 +26,10 @@ /* !BEGIN!: Do not edit below this line. */ +#ifdef __cplusplus +extern "C" { +#endif + /* * Exported function declarations: */ @@ -410,10 +414,8 @@ typedef struct TkIntPlatStubs { #endif /* X11 */ } TkIntPlatStubs; -#ifdef __cplusplus -extern "C" { -#endif extern const TkIntPlatStubs *tkIntPlatStubsPtr; + #ifdef __cplusplus } #endif |