diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-12-21 18:15:14 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-12-21 18:15:14 +0000 |
| commit | 421fd3985fa044d05ba50c33307bcaae2a18f5fc (patch) | |
| tree | d39920c1d512cb7b622d733d54a16416db4de933 /src | |
| parent | f5375b6ab64edbe5e5b017b053fb1385613ceef9 (diff) | |
Fix to allow Fl.cxx to compile with older C++ compilers (no variable
declaration in while() constructs...)
"cp" doesn't always support "-f".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 1fc52303a..56f25894b 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.35 2000/12/12 08:57:30 spitzak Exp $" +// "$Id: Fl.cxx,v 1.24.2.36 2000/12/21 18:15:14 easysw Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -203,7 +203,8 @@ static char in_idle; double Fl::wait(double time_to_wait) { if (first_timeout) { elapse_timeouts(); - while (Timeout* t = first_timeout) { + Timeout *t; + while (t = first_timeout) { if (t->time > 0) break; // The first timeout in the array has expired. // We must remove timeout from array before doing the callback: @@ -771,5 +772,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.35 2000/12/12 08:57:30 spitzak Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.36 2000/12/21 18:15:14 easysw Exp $". // |
