diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-31 08:51:10 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-31 08:51:10 (GMT) |
commit | 4f970286ec90b02eaf3ad950648ca61a79c193e9 (patch) | |
tree | ed3f975994e81fe4225ba79db8f1746d427737ec /generic/tkIntXlibDecls.h | |
parent | 85289793bcef6cb95dad1879cb483f5128be9d27 (diff) | |
download | tk-4f970286ec90b02eaf3ad950648ca61a79c193e9.zip tk-4f970286ec90b02eaf3ad950648ca61a79c193e9.tar.gz tk-4f970286ec90b02eaf3ad950648ca61a79c193e9.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/tkIntXlibDecls.h')
-rw-r--r-- | generic/tkIntXlibDecls.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkIntXlibDecls.h b/generic/tkIntXlibDecls.h index 1357ceb..b978561 100644 --- a/generic/tkIntXlibDecls.h +++ b/generic/tkIntXlibDecls.h @@ -36,6 +36,10 @@ typedef int (*XAfterFunction) ( /* WARNING, this type not in Xlib spec */ /* !BEGIN!: Do not edit below this line. */ +#ifdef __cplusplus +extern "C" { +#endif + /* * Exported function declarations: */ @@ -1453,10 +1457,8 @@ typedef struct TkIntXlibStubs { #endif /* AQUA */ } TkIntXlibStubs; -#ifdef __cplusplus -extern "C" { -#endif extern TkIntXlibStubs *tkIntXlibStubsPtr; + #ifdef __cplusplus } #endif |