summaryrefslogtreecommitdiffstats
path: root/generic/tclNotify.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2021-04-01 08:18:38 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2021-04-01 08:18:38 (GMT)
commit55bb44b8bec17ea6e369820e70c97d8939e1ff70 (patch)
tree1144a225c49917782368865bf4f7a75ca0ceeb99 /generic/tclNotify.c
parent5ca6887e668192a78c3970398c98a574210c6296 (diff)
downloadtcl-55bb44b8bec17ea6e369820e70c97d8939e1ff70.zip
tcl-55bb44b8bec17ea6e369820e70c97d8939e1ff70.tar.gz
tcl-55bb44b8bec17ea6e369820e70c97d8939e1ff70.tar.bz2
Forgot a place to #ifndef out
Diffstat (limited to 'generic/tclNotify.c')
-rw-r--r--generic/tclNotify.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/generic/tclNotify.c b/generic/tclNotify.c
index 9b5234b..12b40b1 100644
--- a/generic/tclNotify.c
+++ b/generic/tclNotify.c
@@ -235,12 +235,6 @@ Tcl_SetNotifier(
* loop.
*/
- if (tclNotifierHooks.createFileHandlerProc == Tcl_CreateFileHandler) {
- tclNotifierHooks.createFileHandlerProc = NULL;
- }
- if (tclNotifierHooks.deleteFileHandlerProc == Tcl_DeleteFileHandler) {
- tclNotifierHooks.deleteFileHandlerProc = NULL;
- }
if (tclNotifierHooks.setTimerProc == Tcl_SetTimer) {
tclNotifierHooks.setTimerProc = NULL;
}
@@ -259,6 +253,14 @@ Tcl_SetNotifier(
if (tclNotifierHooks.serviceModeHookProc == Tcl_ServiceModeHook) {
tclNotifierHooks.serviceModeHookProc = NULL;
}
+#ifndef _WIN32
+ if (tclNotifierHooks.createFileHandlerProc == Tcl_CreateFileHandler) {
+ tclNotifierHooks.createFileHandlerProc = NULL;
+ }
+ if (tclNotifierHooks.deleteFileHandlerProc == Tcl_DeleteFileHandler) {
+ tclNotifierHooks.deleteFileHandlerProc = NULL;
+ }
+#endif /* !_WIN32 */
}
/*