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
This commit is contained in:
Michael R Sweet 2000-12-21 18:15:14 +00:00
parent f5375b6ab6
commit 421fd3985f
2 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
#
# "$Id: Makefile,v 1.9.2.6 2000/06/05 21:20:35 mike Exp $"
# "$Id: Makefile,v 1.9.2.7 2000/12/21 18:15:14 easysw Exp $"
#
# Documentation makefile for the Fast Light Tool Kit (FLTK).
#
@ -129,8 +129,8 @@ depend:
install:
-mkdir -p $(prefix)/share/doc/fltk
cp -f $(HTMLFILES) index.html $(prefix)/share/doc/fltk
cp -f *.gif *.jpg $(prefix)/share/doc/fltk
cp $(HTMLFILES) index.html $(prefix)/share/doc/fltk
cp *.gif *.jpg $(prefix)/share/doc/fltk
chmod 644 $(prefix)/share/doc/fltk/*
fltk.d/index.html: $(HTMLFILES)
@ -149,5 +149,5 @@ fltk.pdf: $(HTMLFILES)
$(HTMLDOC) -f fltk.pdf --jpeg --compression=9 --duplex --verbose --toclevels 2 --titleimage FL.gif $(HTMLFILES)
#
# End of "$Id: Makefile,v 1.9.2.6 2000/06/05 21:20:35 mike Exp $".
# End of "$Id: Makefile,v 1.9.2.7 2000/12/21 18:15:14 easysw Exp $".
#

View File

@ -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 $".
//