aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-e7kpc.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-09-25 04:31:34 +0000
committerAndrew Cagney <cagney@redhat.com>1997-09-25 04:31:34 +0000
commitc1937db3e578ce777b66db5cc8d14b66099902a8 (patch)
treecc4fa06c22536616b7fdcf76f90751de020235b2 /gdb/ser-e7kpc.c
parente63bc706fe4de06ee0d9d08416b5d4c701960a66 (diff)
downloadgdb-c1937db3e578ce777b66db5cc8d14b66099902a8.zip
gdb-c1937db3e578ce777b66db5cc8d14b66099902a8.tar.gz
gdb-c1937db3e578ce777b66db5cc8d14b66099902a8.tar.bz2
Only use get_ds_base function on true Windows.
Diffstat (limited to 'gdb/ser-e7kpc.c')
-rw-r--r--gdb/ser-e7kpc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ser-e7kpc.c b/gdb/ser-e7kpc.c
index fac2c45..8cf6ec6 100644
--- a/gdb/ser-e7kpc.c
+++ b/gdb/ser-e7kpc.c
@@ -27,6 +27,9 @@
#ifdef _MSC_VER
#define strncasecmp strnicmp
#define WIN32_LEAN_AND_MEAN
+#endif
+
+#ifdef _WIN32
#include <windows.h>
#endif
@@ -110,7 +113,7 @@ static struct sw
{0x17, 0xdc000},
0};
-#ifndef __GO32__
+#ifdef _MSC_VER
/* 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
device registers reside. Note that this is really only necessary for
@@ -137,9 +140,9 @@ get_ds_base (void)
return dsbase;
}
-#else /* !__GO32__ */
+#else /* !_MSC_VER */
#define get_ds_base() 0
-#endif /* __GO32__ */
+#endif /* _MSC_VER */
static int
e7000pc_init ()