From: Ryan Schmidt Date: Wed, 18 May 2022 10:53:08 +0000 (-0500) Subject: src/tclx/ucbsrc/tclexpr.sed: Micropolis build fixes for recent macOS X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/commitdiff_plain/1f4aeab6ff1a6d74140387d699f9839360c95156?ds=sidebyside src/tclx/ucbsrc/tclexpr.sed: Micropolis build fixes for recent macOS Fix: tclexpr.c:1321:1: error: implicit declaration of function 'Tcl_ReturnDouble' is invalid in C99 [-Werror,-Wimplicit-function-declaration] Tcl_ReturnDouble (interp, value.doubleValue); ^ --- diff --git a/src/tclx/ucbsrc/tclexpr.sed b/src/tclx/ucbsrc/tclexpr.sed index ce0fd86..f3c1dab 100644 --- a/src/tclx/ucbsrc/tclexpr.sed +++ b/src/tclx/ucbsrc/tclexpr.sed @@ -1,2 +1,5 @@ +/#include "tclint.h"/a\ +\#include "tclxint.h" + / sprintf(interp->result, "%g", value.doubleValue);/c\ Tcl_ReturnDouble (interp, value.doubleValue);