mirror of
https://github.com/86Box/probing-tools.git
synced 2026-02-21 17:15:34 -07:00
Switch DOS detection define to MSDOS
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -25,14 +25,14 @@
|
||||
# include <unistd.h>
|
||||
# endif
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#ifdef MSDOS
|
||||
# include <dos.h>
|
||||
# include <graph.h>
|
||||
#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()
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
# include <stdint.h>
|
||||
# include <string.h>
|
||||
# include <stdlib.h>
|
||||
# ifdef __WATCOMC__
|
||||
# ifdef MSDOS
|
||||
# include <dos.h>
|
||||
# include <i86.h>
|
||||
# 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;
|
||||
|
||||
Reference in New Issue
Block a user