diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index 42b7b0df7fa..2b7e46a8f15 100644 --- a/gdb/ChangeLog-gdbtk +++ b/gdb/ChangeLog-gdbtk @@ -1,3 +1,9 @@ +Thu Aug 13 15:09:59 1998 Drew Moseley + + * gdbtk.c (gdbtk_cleanup): added a scope-level around the contents + of the #ifdef so that the variable declarations in there would not + be illegal in a C compilation. + Mon Jul 27 13:07:16 1998 Martin M. Hunt * gdbtk.c (gdbtk_call_command): Removed because it is now diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index 01cf3ddd60e..e8d31ad5658 100644 --- a/gdb/gdbtk.c +++ b/gdb/gdbtk.c @@ -298,8 +298,10 @@ gdbtk_cleanup (dummy) { Tcl_Eval (gdbtk_interp, "gdbtk_cleanup"); #ifdef IDE - struct ide_event_handle *h = (struct ide_event_handle *) dummy; - ide_interface_deregister_all (h); + { + struct ide_event_handle *h = (struct ide_event_handle *) dummy; + ide_interface_deregister_all (h); + } #endif Tcl_Finalize (); }