diff options
-rw-r--r-- | generic/tkIntDecls.h | 16 | ||||
-rw-r--r-- | generic/tkStubInit.c | 10 |
2 files changed, 19 insertions, 7 deletions
diff --git a/generic/tkIntDecls.h b/generic/tkIntDecls.h index 9d86109..11802b8 100644 --- a/generic/tkIntDecls.h +++ b/generic/tkIntDecls.h @@ -1213,13 +1213,15 @@ extern const TkIntStubs *tkIntStubsPtr; #undef TkpGetSystemDefault #undef TkpMakeContainer -#define TkSetWindowMenuBar Tk_SetWindowMenuBar -#define TkpDrawHighlightBorder Tk_DrawHighlightBorder -#define TkpUseWindow Tk_UseWindow -#define TkpSetMainMenubar Tk_SetMainMenubar -#define TkpGetOtherWindow ((TkWindow *(*)(TkWindow *))(void *)Tk_GetOtherWindow) -#define TkpGetSystemDefault Tk_GetSystemDefault -#define TkpMakeContainer Tk_MakeContainer +#if !defined(TK_NO_DEPRECATED) && (TCL_MAJOR_VERSION == 8) +# define TkSetWindowMenuBar Tk_SetWindowMenuBar +# define TkpDrawHighlightBorder Tk_DrawHighlightBorder +# define TkpUseWindow Tk_UseWindow +# define TkpSetMainMenubar Tk_SetMainMenubar +# define TkpGetOtherWindow ((TkWindow *(*)(TkWindow *))(void *)Tk_GetOtherWindow) +# define TkpGetSystemDefault Tk_GetSystemDefault +# define TkpMakeContainer Tk_MakeContainer +#endif #if !defined(MAC_OSX_TK) # undef TkpWillDrawWidget diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c index 0426c50..f802810 100644 --- a/generic/tkStubInit.c +++ b/generic/tkStubInit.c @@ -61,6 +61,16 @@ static int TkWinGetPlatformId(void) { # define TkWinGetPlatformId 0 #endif +#if defined(TK_NO_DEPRECATED) || (TCL_MAJOR_VERSION > 8) +# define TkSetWindowMenuBar 0 +# define TkpDrawHighlightBorder 0 +# define TkpUseWindow 0 +# define TkpSetMainMenubar 0 +# define TkpGetOtherWindow 0 +# define TkpGetSystemDefault 0 +# define TkpMakeContainer 0 +#endif + static int doNothing(void) { |