diff --git a/bshell.runtime/format/format.c b/bshell.runtime/format/format.c index 55a6851..ae56da4 100644 --- a/bshell.runtime/format/format.c +++ b/bshell.runtime/format/format.c @@ -1,8 +1,11 @@ #include -#include #include #include +#if BSHELL_INTERACTIVE == 1 +#include +#endif + static void format_value_fallback(const fx_value *value, fx_stream *dest) { #if BSHELL_INTERACTIVE == 1 diff --git a/bshell.runtime/format/table.c b/bshell.runtime/format/table.c index 359f979..40dee3a 100644 --- a/bshell.runtime/format/table.c +++ b/bshell.runtime/format/table.c @@ -3,9 +3,12 @@ #include #include #include +#include + +#if BSHELL_INTERACTIVE == 1 #include #include -#include +#endif static fx_namemap bshell_tables = FX_NAMEMAP_INIT; diff --git a/bshell.runtime/runtime/cmdcall.c b/bshell.runtime/runtime/cmdcall.c index 80d5abf..3b33f1d 100644 --- a/bshell.runtime/runtime/cmdcall.c +++ b/bshell.runtime/runtime/cmdcall.c @@ -9,9 +9,12 @@ #include #include #include -#include #include +#if BSHELL_INTERACTIVE == 1 +#include +#endif + enum cmdcall_type { CMDCALL_NONE = 0, CMDCALL_CMDLET,