summaryrefslogtreecommitdiffstats
path: root/macosx/tclMacOSXNotify.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-08-18 14:31:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-08-18 14:31:55 (GMT)
commitf69a86b7146ddfe59ba45c2ef1741d9d25121a6e (patch)
tree538e13839ae7aaf90ee97af180caa22dc6599ada /macosx/tclMacOSXNotify.c
parent5f83d31eceac5d0a48f75293f02725a59168beaf (diff)
downloadtcl-f69a86b7146ddfe59ba45c2ef1741d9d25121a6e.zip
tcl-f69a86b7146ddfe59ba45c2ef1741d9d25121a6e.tar.gz
tcl-f69a86b7146ddfe59ba45c2ef1741d9d25121a6e.tar.bz2
Fix use of TCL_THREADS macro: In Tcl 8.7, this is always defined, but can have value '1' or '0'
Diffstat (limited to 'macosx/tclMacOSXNotify.c')
-rw-r--r--macosx/tclMacOSXNotify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tclMacOSXNotify.c b/macosx/tclMacOSXNotify.c
index e80d6f9..35e6ae8 100644
--- a/macosx/tclMacOSXNotify.c
+++ b/macosx/tclMacOSXNotify.c
@@ -461,7 +461,7 @@ static int notifierThreadRunning;
* The following static flag indicates that async handlers are pending.
*/
-#ifdef TCL_THREADS
+#if TCL_THREADS
static int asyncPending = 0;
#endif
@@ -1912,7 +1912,7 @@ TclAsyncNotifier(
int *flagPtr, /* Flag to mark. */
int value) /* Value of mark. */
{
-#ifdef TCL_THREADS
+#if TCL_THREADS
/*
* WARNING:
* This code most likely runs in a signal handler. Thus,