From 753d72ecb98f0d5f0543851fda4d246b4cc97ce9 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Wed, 18 May 2022 05:53:08 -0500 Subject: [PATCH] src/tk/tkevent.c: Micropolis build fixes for recent macOS Fix: tkevent.c:682:3: error: implicit declaration of function 'TkWmProtocolEventProc' is invalid in C99 [-Werror,-Wimplicit-function-declaration] TkWmProtocolEventProc(winPtr, eventPtr); ^ tkevent.c:1447:5: error: implicit declaration of function 'Tcl_CheckForSignal' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (Tcl_CheckForSignal (tk_mainInterp, TCL_OK) == TCL_ERROR) ^ tkevent.c:1512:5: error: implicit declaration of function 'Tcl_CheckForSignal' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (Tcl_CheckForSignal (tk_mainInterp, TCL_OK) == TCL_ERROR) ^ --- src/tk/tkevent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tk/tkevent.c b/src/tk/tkevent.c index 5e2c654..0e9deb0 100644 --- a/src/tk/tkevent.c +++ b/src/tk/tkevent.c @@ -21,6 +21,8 @@ static char rcsid[] = "$Header: /user6/ouster/wish/RCS/tkEvent.c,v 1.60 92/08/21 #include "tkconfig.h" #include "tkint.h" +#include "tclxtend.h" +#include "tkwm.h" #include #include #include -- 2.39.5