Only use get_ds_base function on true Windows.
This commit is contained in:
parent
e63bc706fe
commit
c1937db3e5
@ -1,3 +1,8 @@
|
|||||||
|
Thu Sep 18 15:07:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
* ser-e7kpc.c (get_ds_base): Only use under Windows.
|
||||||
|
(windows.h): Include when any _WIN32 host.
|
||||||
|
|
||||||
Wed Sep 24 18:12:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
|
Wed Sep 24 18:12:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
|
||||||
|
|
||||||
* The following block of changes add support for debugging assembly
|
* The following block of changes add support for debugging assembly
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define strncasecmp strnicmp
|
#define strncasecmp strnicmp
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -110,7 +113,7 @@ static struct sw
|
|||||||
{0x17, 0xdc000},
|
{0x17, 0xdc000},
|
||||||
0};
|
0};
|
||||||
|
|
||||||
#ifndef __GO32__
|
#ifdef _MSC_VER
|
||||||
/* Get the base of the data segment. This is needed to calculate the offset
|
/* Get the base of the data segment. This is needed to calculate the offset
|
||||||
between data segment addresses and the base of linear memory, which is where
|
between data segment addresses and the base of linear memory, which is where
|
||||||
device registers reside. Note that this is really only necessary for
|
device registers reside. Note that this is really only necessary for
|
||||||
@ -137,9 +140,9 @@ get_ds_base (void)
|
|||||||
|
|
||||||
return dsbase;
|
return dsbase;
|
||||||
}
|
}
|
||||||
#else /* !__GO32__ */
|
#else /* !_MSC_VER */
|
||||||
#define get_ds_base() 0
|
#define get_ds_base() 0
|
||||||
#endif /* __GO32__ */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
e7000pc_init ()
|
e7000pc_init ()
|
||||||
|
Loading…
Reference in New Issue
Block a user