summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXNotify.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-25 19:59:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-25 19:59:00 (GMT)
commitd3539f9c972519af19dc91bc022b2ae293341614 (patch)
tree29d84d63d47d42a558fe290198a0960a11731bd7 /macosx/tkMacOSXNotify.c
parent076287b193ce6c0a24cde6b5888e355468c2e2ac (diff)
downloadtk-d3539f9c972519af19dc91bc022b2ae293341614.zip
tk-d3539f9c972519af19dc91bc022b2ae293341614.tar.gz
tk-d3539f9c972519af19dc91bc022b2ae293341614.tar.bz2
Make Tk 8.6 compile (again) with Tcl 8.7 headers and --disable-shared
Diffstat (limited to 'macosx/tkMacOSXNotify.c')
-rw-r--r--macosx/tkMacOSXNotify.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c
index cbffb55..6834354 100644
--- a/macosx/tkMacOSXNotify.c
+++ b/macosx/tkMacOSXNotify.c
@@ -36,8 +36,11 @@ extern const TclIntPlatStubs *tclIntPlatStubsPtr;
#endif
#define TclMacOSXNotifierAddRunLoopMode \
(tclIntPlatStubsPtr->tclMacOSXNotifierAddRunLoopMode) /* 19 */
-#else
+#elif TCL_MINOR_VERSION < 7
extern void TclMacOSXNotifierAddRunLoopMode(const void *runLoopMode);
+#else
+ extern void Tcl_MacOSXNotifierAddRunLoopMode(const void *runLoopMode);
+# define TclMacOSXNotifierAddRunLoopMode Tcl_MacOSXNotifierAddRunLoopMode
#endif
#import <objc/objc-auto.h>