diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-23 12:43:39 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-23 12:43:39 (GMT) |
commit | 1c915433e73f15e733b1b2506742082b9b178d96 (patch) | |
tree | 37be222e0ae9771b6ee87df3c166006bca936c2e /generic/tkStubInit.c | |
parent | b75e0607536160680311027fd3f1d04559a0bfdc (diff) | |
download | tk-1c915433e73f15e733b1b2506742082b9b178d96.zip tk-1c915433e73f15e733b1b2506742082b9b178d96.tar.gz tk-1c915433e73f15e733b1b2506742082b9b178d96.tar.bz2 |
If Tk is compiled with -DTK_NO_DEPRECATED, remove TkWinGetPlatformId from the stub table.
Diffstat (limited to 'generic/tkStubInit.c')
-rw-r--r-- | generic/tkStubInit.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c index cefaa39..576bebd 100644 --- a/generic/tkStubInit.c +++ b/generic/tkStubInit.c @@ -44,6 +44,7 @@ MODULE_SCOPE const TkStubs tkStubs; #ifdef TK_NO_DEPRECATED #define Tk_FreeXId 0 +#define TkWinGetPlatformId 0 #define Tk_PhotoPutBlock_NoComposite 0 #define Tk_PhotoPutZoomedBlock_NoComposite 0 #define Tk_PhotoExpand_Panic 0 @@ -60,8 +61,13 @@ doNothing(void) #define Tk_FreeXId ((void (*)(Display *, XID)) doNothing) #endif +#if defined(_WIN32) || defined(__CYGWIN__) +#define TkWinGetPlatformId winGetPlatformId +static int TkWinGetPlatformId() { + return 2; +} +#endif #ifdef _WIN32 - int TkpCmapStressed(Tk_Window tkwin, Colormap colormap) { @@ -226,7 +232,6 @@ void TkSubtractRegion (TkRegion a, TkRegion b, TkRegion c) # define TkWinSetForegroundWindow 0 # define TkWinDialogDebug 0 # define TkWinGetMenuSystemDefault 0 -# define TkWinGetPlatformId 0 # define TkWinSetHINSTANCE 0 # define TkWinGetPlatformTheme 0 # define TkWinChildProc 0 |