diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-23 16:34:09 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-23 16:34:09 (GMT) |
commit | c22b92c39790b17adce527e2bcc40be29fffe1d1 (patch) | |
tree | 05649687de0a237be8d9ca2f00c08e9b3150ec5b /generic/tkStubInit.c | |
parent | 1c915433e73f15e733b1b2506742082b9b178d96 (diff) | |
download | tk-c22b92c39790b17adce527e2bcc40be29fffe1d1.zip tk-c22b92c39790b17adce527e2bcc40be29fffe1d1.tar.gz tk-c22b92c39790b17adce527e2bcc40be29fffe1d1.tar.bz2 |
no longer export TkWinGetPlatformId as symbol from dll: Since TkWinGetPlatformId is a macro now this is no longer necessary
Diffstat (limited to 'generic/tkStubInit.c')
-rw-r--r-- | generic/tkStubInit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c index 576bebd..3ab57f7 100644 --- a/generic/tkStubInit.c +++ b/generic/tkStubInit.c @@ -42,7 +42,7 @@ MODULE_SCOPE const TkStubs tkStubs; #undef TkWinGetPlatformId -#ifdef TK_NO_DEPRECATED +#if defined(TK_NO_DEPRECATED) || TK_MAJOR_VERSION > 8 #define Tk_FreeXId 0 #define TkWinGetPlatformId 0 #define Tk_PhotoPutBlock_NoComposite 0 @@ -59,14 +59,14 @@ doNothing(void) } #define Tk_FreeXId ((void (*)(Display *, XID)) doNothing) -#endif - #if defined(_WIN32) || defined(__CYGWIN__) #define TkWinGetPlatformId winGetPlatformId static int TkWinGetPlatformId() { return 2; } -#endif +#endif /* defined(_WIN32) || defined(__CYGWIN__) */ +#endif /* defined(TK_NO_DEPRECATED) || TK_MAJOR_VERSION > 8 */ + #ifdef _WIN32 int TkpCmapStressed(Tk_Window tkwin, Colormap colormap) |