diff --git a/clib/clib.h b/clib/clib.h index 3722c53..19e0af6 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(__WATCOMC__) || defined(M_I386) +#if !defined(MSDOS) || defined(M_I386) # define IS_32BIT 1 #endif diff --git a/clib/clib_term.c b/clib/clib_term.c index eeecb10..519bc4a 100644 --- a/clib/clib_term.c +++ b/clib/clib_term.c @@ -25,14 +25,14 @@ # include # endif #endif -#ifdef __WATCOMC__ +#ifdef MSDOS # include # include #endif #include "clib_term.h" /* Positioning functions. */ -#ifdef __WATCOMC__ +#ifdef MSDOS static union REGPACK rp; /* things break if this is not a global variable... */ int @@ -154,7 +154,7 @@ term_set_cursor_pos(uint8_t x, uint8_t y) #endif /* Output functions. */ -#ifdef __WATCOMC__ +#ifdef MSDOS void term_unbuffer_stdout() { diff --git a/pcireg/pcireg.c b/pcireg/pcireg.c index 493a884..4c3789f 100644 --- a/pcireg/pcireg.c +++ b/pcireg/pcireg.c @@ -28,7 +28,7 @@ # include # include # include -# ifdef __WATCOMC__ +# ifdef MSDOS # include # include # endif @@ -101,7 +101,7 @@ static const char *bridge_flags[] = { static int term_width; static FILE *pciids_f = NULL; -#if defined(__WATCOMC__) +#if defined(MSDOS) static union REGS regs; static struct SREGS seg_regs; # pragma pack(push, 1) @@ -152,7 +152,7 @@ static struct PACKED { uint32_t string_offset; } pciids_progif; -#if defined(__WATCOMC__) +#if defined(MSDOS) typedef struct { uint8_t bus, dev; struct { @@ -1049,7 +1049,7 @@ dump_info(uint8_t bus, uint8_t dev, uint8_t func) return 0; } -#if defined(__WATCOMC__) +#if defined(MSDOS) static int comp_irq_routing_entry(const void *elem1, const void *elem2) { @@ -1524,7 +1524,7 @@ main(int argc, char **argv) usage: printf("%s -s [-d]\n", argv[0]); printf("∟ Display all devices on the PCI bus. Specify -d to dump registers as well.\n"); -#if defined(__WATCOMC__) +#if defined(MSDOS) printf("\n"); printf("%s -t [-m] [-8]\n", argv[0]); printf("∟ Display BIOS IRQ steering table. Specify -m to look for a Microsoft $PIR\n"); @@ -1575,7 +1575,7 @@ usage: else return scan_buses('\0'); } -#if defined(__WATCOMC__) +#if defined(MSDOS) else if (argv[1][1] == 't') { /* Steering table display asks for optional parameters. */ reg = 0;