From 336049560ba25ca6624e4a07b869c2728cfd2ac7 Mon Sep 17 00:00:00 2001 From: dzaima Date: Wed, 19 Oct 2022 19:31:21 +0300 Subject: [PATCH] =?UTF-8?q?don't=20include=20=E2=80=A2FFI=20if=20FFI=20is?= =?UTF-8?q?=20disabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/sysfn.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/builtins/sysfn.c b/src/builtins/sysfn.c index bd4d9115..9bcd9ca5 100644 --- a/src/builtins/sysfn.c +++ b/src/builtins/sysfn.c @@ -1374,6 +1374,11 @@ B getPrimitives(void); static Body* file_nsGen; +#if FFI +#define OPT_FFI(F) F("ffi", U"•FFI", tag(10,VAR_TAG)) +#else +#define OPT_FFI(F) +#endif #define FOR_DEFAULT_SYSVALS(F) \ F("out", U"•Out", bi_out) \ @@ -1409,7 +1414,7 @@ static Body* file_nsGen; F("fbytes", U"•FBytes", tag(7,VAR_TAG)) \ F("flines", U"•FLines", tag(8,VAR_TAG)) \ F("import", U"•Import", tag(9,VAR_TAG)) \ - F("ffi", U"•FFI", tag(10,VAR_TAG)) \ + OPT_FFI(F) \ F("name", U"•name", tag(11,VAR_TAG)) \ F("path", U"•path", tag(12,VAR_TAG)) \ F("wdpath", U"•wdpath", tag(13,VAR_TAG)) \