diff options
author | Andrey Volkov <avolkov@transas.com> | 2002-06-10 19:19:37 +0000 |
---|---|---|
committer | Andrey Volkov <avolkov@transas.com> | 2002-06-10 19:19:37 +0000 |
commit | 304270b6be4c0983933af3f6fe4c6b686a99a99d (patch) | |
tree | 65b274adb68d6d6c794822498b2e150975351427 /gdb/ser-e7kpc.c | |
parent | e560f274e3a75b65dfc208d3ca261afd5b454292 (diff) | |
download | gdb-304270b6be4c0983933af3f6fe4c6b686a99a99d.zip gdb-304270b6be4c0983933af3f6fe4c6b686a99a99d.tar.gz gdb-304270b6be4c0983933af3f6fe4c6b686a99a99d.tar.bz2 |
ser-e7kpc.c: Fix duplicated define and call of _initialize_ser_e7000pc
Diffstat (limited to 'gdb/ser-e7kpc.c')
-rw-r--r-- | gdb/ser-e7kpc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gdb/ser-e7kpc.c b/gdb/ser-e7kpc.c index 49b2c89..063cca1 100644 --- a/gdb/ser-e7kpc.c +++ b/gdb/ser-e7kpc.c @@ -423,16 +423,12 @@ static struct serial_ops e7000pc_ops = e7000pc_noop, /* wait for output to drain */ }; -void -_initialize_ser_e7000pc (void) -{ - serial_add_interface (&e7000pc_ops); -} -#else +#endif /*_WIN32 or __GO32__*/ void _initialize_ser_e7000pc (void) { - +#if defined __GO32__ || defined _WIN32 + serial_add_interface (&e7000pc_ops); +#endif } -#endif |