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?hp=d0e1ede27a0c7ce4f381c108068887fe7c93d37f 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);