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 | faf078a2709835cbdb9c68f697d7d376e83e2e1c (patch) | |
tree | b0c5ab37fa9ac435be51a5019b478964c876194b /generic/tkPlatDecls.h | |
parent | 89b73ce8de124a5e7713eaf13e089ce848f5d7b3 (diff) | |
parent | 89b2c07cd610dcb6022a73c10c7880ec9822551b (diff) | |
download | tk-faf078a2709835cbdb9c68f697d7d376e83e2e1c.zip tk-faf078a2709835cbdb9c68f697d7d376e83e2e1c.tar.gz tk-faf078a2709835cbdb9c68f697d7d376e83e2e1c.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/tkPlatDecls.h')
-rw-r--r-- | generic/tkPlatDecls.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkPlatDecls.h b/generic/tkPlatDecls.h index e59c014..88fa918 100644 --- a/generic/tkPlatDecls.h +++ b/generic/tkPlatDecls.h @@ -29,6 +29,10 @@ extern "C" { /* !BEGIN!: Do not edit below this line. */ +#ifdef __cplusplus +extern "C" { +#endif + /* * Exported function declarations: */ @@ -107,10 +111,8 @@ typedef struct TkPlatStubs { #endif /* AQUA */ } TkPlatStubs; -#ifdef __cplusplus -extern "C" { -#endif extern const TkPlatStubs *tkPlatStubsPtr; + #ifdef __cplusplus } #endif |