From ceb54e5ff71dbdb5ed3102d743986f78cbf1a33a Mon Sep 17 00:00:00 2001 From: Tony Nicholson Date: Fri, 23 Mar 2018 15:25:59 -0700 Subject: [PATCH] AltairZ80: Set conditional under CYGWIN so the SIMH device works Under CYGWIN the conditional tests in the altairz80_sio.c source file for the SIMH pseudo device's getHostsFilenamesCmd and resetSIMHInterfaceCmd functions need to have UNIX_PLATFORM set to 1 - otherwise they do nothing! With this fix, the HDIR host command from CP/M now displays a list of files in host system's current directory under CYGWIN. --- AltairZ80/altairz80_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AltairZ80/altairz80_defs.h b/AltairZ80/altairz80_defs.h index 6281a36c..5d50a89d 100644 --- a/AltairZ80/altairz80_defs.h +++ b/AltairZ80/altairz80_defs.h @@ -83,7 +83,7 @@ typedef enum { #define UNIT_CPU_V_SWITCHER (UNIT_V_UF+6) /* switcher 8086 <--> 8080/Z80 enabled */ #define UNIT_CPU_SWITCHER (1 << UNIT_CPU_V_SWITCHER) -#if defined (__linux) || defined (__linux__) || defined(__NetBSD__) || defined (__OpenBSD__) || defined (__FreeBSD__) || defined (__APPLE__) || defined (__hpux) +#if defined (__linux) || defined (__linux__) || defined(__NetBSD__) || defined (__OpenBSD__) || defined (__FreeBSD__) || defined (__APPLE__) || defined (__hpux) || defined (__CYGWIN__) #define UNIX_PLATFORM 1 #else #define UNIX_PLATFORM 0