diff --git a/bshell/debug.c b/bshell/debug.c index def314c..eb9181e 100644 --- a/bshell/debug.c +++ b/bshell/debug.c @@ -5,9 +5,12 @@ #include #include #include -#include #include +#if BSHELL_INTERACTIVE == 1 +#include +#endif + #if BSHELL_INTERACTIVE == 1 #define RED "[red]" #define YELLOW "[yellow]" diff --git a/bshell/main.c b/bshell/main.c index 5d26039..483b21f 100644 --- a/bshell/main.c +++ b/bshell/main.c @@ -1,5 +1,4 @@ #include "debug.h" -#include "line-ed/line-ed.h" #include #include @@ -12,6 +11,10 @@ #include #include +#if BSHELL_INTERACTIVE == 1 +#include "line-ed/line-ed.h" +#endif + extern const fx_assembly *bshell_assembly_get(void); extern const fx_assembly *bshell_runtime_assembly_get(void); extern const fx_assembly *bshell_core_assembly_get(void);