From: Andrey Volkov Date: Mon, 10 Jun 2002 19:19:37 +0000 (+0000) Subject: ser-e7kpc.c: Fix duplicated define and call of _initialize_ser_e7000pc X-Git-Tag: binutils-2_13-branchpoint~444 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=304270b6be4c0983933af3f6fe4c6b686a99a99d;p=platform%2Fupstream%2Fbinutils.git ser-e7kpc.c: Fix duplicated define and call of _initialize_ser_e7000pc --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5285f49..37b511d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-06-10 Andrey Volkov + + * ser-e7kpc.c: Fix duplicated define and call of + _initialize_ser_e7000pc + + 2002-06-09 Daniel Jacobowitz * signals/signals.c (target_signal_from_host): Fix #ifdef 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