From 971794a14cb376e7fa5758eee89e24254a16e949 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 25 Jan 2021 14:15:05 +0700 Subject: [PATCH] Fix bbtsub.c compilation without XWINDOW or DOS. (#293) Without those, it wasn't including `devif.h`, which is where we define `min` and `max`. I make an assumption here that any new display would be using the current display device support code. --- src/bbtsub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bbtsub.c b/src/bbtsub.c index 1e63cf0..83d77fe 100644 --- a/src/bbtsub.c +++ b/src/bbtsub.c @@ -76,10 +76,10 @@ extern IOPAGE *IOPage68K; #include "dbprint.h" -#if (defined(DOS) || defined(XWINDOW)) +#if !defined(SUNDISPLAY) #include "devif.h" extern DspInterface currentdsp; -#endif /* DOS || WXINDOW */ +#endif /* SUNDISPLAY */ #ifdef COLOR extern int MonoOrColor;