]> git.zerfleddert.de Git - micropolis/commitdiff
src/tclx/ucbsrc/tclexpr.sed: Micropolis build fixes for recent macOS
authorRyan Schmidt <ryandesign@macports.org>
Wed, 18 May 2022 10:53:08 +0000 (05:53 -0500)
committerMichael Gernoth <michael@gernoth.net>
Sat, 4 Jun 2022 09:20:34 +0000 (11:20 +0200)
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);
^

src/tclx/ucbsrc/tclexpr.sed

index ce0fd865102945a5289234d4eb827c98ad55616e..f3c1dab41e292d0ab4a7fc4b56cfd5c78a63ccac 100644 (file)
@@ -1,2 +1,5 @@
+/#include "tclint.h"/a\
+\#include "tclxint.h"
+
 /          sprintf(interp->result, "%g", value.doubleValue);/c\
            Tcl_ReturnDouble (interp, value.doubleValue);
Impressum, Datenschutz