summaryrefslogtreecommitdiffstats
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
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'
-rw-r--r--generic/tclAsync.c2
-rw-r--r--macosx/tclMacOSXNotify.c4
-rw-r--r--unix/tclEpollNotfy.c2
-rw-r--r--unix/tclKqueueNotfy.c2
-rw-r--r--unix/tclSelectNotfy.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclAsync.c b/generic/tclAsync.c
index bce984d..c790822 100644
--- a/generic/tclAsync.c
+++ b/generic/tclAsync.c
@@ -227,7 +227,7 @@ Tcl_AsyncMarkFromSignal(
Tcl_AsyncHandler async, /* Token for handler. */
int sigNumber) /* Signal number. */
{
-#ifdef TCL_THREADS
+#if TCL_THREADS
AsyncHandler *token = (AsyncHandler *) async;
return TclAsyncNotifier(sigNumber, token->originThrdId,
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,
diff --git a/unix/tclEpollNotfy.c b/unix/tclEpollNotfy.c
index ce7d6b1..bab02ee 100644
--- a/unix/tclEpollNotfy.c
+++ b/unix/tclEpollNotfy.c
@@ -795,7 +795,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,
diff --git a/unix/tclKqueueNotfy.c b/unix/tclKqueueNotfy.c
index 872f71c..bc79ddf 100644
--- a/unix/tclKqueueNotfy.c
+++ b/unix/tclKqueueNotfy.c
@@ -791,7 +791,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,
diff --git a/unix/tclSelectNotfy.c b/unix/tclSelectNotfy.c
index e69ffd8..f7e61c9 100644
--- a/unix/tclSelectNotfy.c
+++ b/unix/tclSelectNotfy.c
@@ -921,7 +921,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,