diff --git a/clib/clib.h b/clib/clib.h index 19e0af6..b0627a5 100644 --- a/clib/clib.h +++ b/clib/clib.h @@ -42,7 +42,7 @@ # define FMT_FLOAT_SUPPORTED 1 # define FOPEN_BINARY "b" #endif -#if !defined(MSDOS) || defined(M_I386) +#if !defined(__DOS__) || defined(__PMODEW__) # define IS_32BIT 1 #endif diff --git a/pcireg/pcireg.c b/pcireg/pcireg.c index 7d0d3e6..701a8d3 100644 --- a/pcireg/pcireg.c +++ b/pcireg/pcireg.c @@ -28,7 +28,7 @@ # include # include # include -# ifdef MSDOS +# if defined(__DOS__) || defined(__PMODEW__) # include # include # endif @@ -101,7 +101,7 @@ static const char *bridge_flags[] = { }; static int term_width; -#if defined(MSDOS) +#if defined(__DOS__) || defined(__PMODEW__) static union REGS regs; static struct SREGS seg_regs; # pragma pack(push, 1) @@ -151,7 +151,7 @@ static struct PACKED { } *pciids_progif = NULL; static char *pciids_string = NULL; -#if defined(MSDOS) +#if defined(__DOS__) || defined(__PMODEW__) typedef struct { uint8_t bus, dev; struct { @@ -1083,7 +1083,7 @@ dump_info(uint8_t bus, uint8_t dev, uint8_t func) return 0; } -#if defined(MSDOS) +#if defined(__DOS__) || defined(__PMODEW__) static int comp_irq_routing_entry(const void *elem1, const void *elem2) { @@ -1564,7 +1564,7 @@ main(int argc, char **argv) usage: printf("%s -s [-d]\n", ch); printf("∟ Display all devices on the PCI bus. Specify -d to dump registers as well.\n"); -#if defined(MSDOS) +#if defined(__DOS__) || defined(__PMODEW__) printf("\n"); printf("%s -t [-m] [-8]\n", ch); printf("∟ Display BIOS IRQ steering table. Specify -m to look for a Microsoft $PIR\n"); @@ -1615,7 +1615,7 @@ usage: else return scan_buses('\0'); } -#if defined(MSDOS) +#if defined(__DOS__) || defined(__PMODEW__) else if (argv[1][1] == 't') { /* Steering table display asks for optional parameters. */ reg = 0;