From 820654ccd63662460b1b7ee5595784fbe49e0977 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Wed, 8 Sep 1999 06:05:00 +0000 Subject: Does not write "extern foo *bar" declarations twice. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Widget_Type.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 88bf48ecb..75c00928b 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget_Type.cxx,v 1.15.2.6 1999/08/09 13:53:55 mike Exp $" +// "$Id: Fl_Widget_Type.cxx,v 1.15.2.7 1999/09/08 06:05:00 bill Exp $" // // Widget type code for the Fast Light Tool Kit (FLTK). // @@ -1295,8 +1295,7 @@ void Fl_Widget_Type::write_code1() { if (class_name()) { write_public(public_); write_h(" %s *%s;\n", t, c); - } else if (public_) - write_h("extern %s *%s;\n", t, c); + } } if (class_name() && callback() && !is_name(callback())) { const char* cn = callback_name(); @@ -1746,5 +1745,5 @@ int Fl_Widget_Type::read_fdesign(const char* name, const char* value) { } // -// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.6 1999/08/09 13:53:55 mike Exp $". +// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.7 1999/09/08 06:05:00 bill Exp $". // -- cgit v1.2.3