diff options
| author | Carl E. Thompson <devel-fltk@carlthompson.net> | 2000-03-08 16:02:25 +0000 |
|---|---|---|
| committer | Carl E. Thompson <devel-fltk@carlthompson.net> | 2000-03-08 16:02:25 +0000 |
| commit | af5190b95f6b4eb16c028aeb9620f5ebcfe4a0ec (patch) | |
| tree | 77c50b9a2ef9333946caf21f5dfc5ed5fe37701e /FL | |
| parent | d4d22e857ce54b2913dc0fea5017260dd7f45397 (diff) | |
Fix to compile on GCC 2.95.
Carl
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl.H | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,5 @@ // -// "$Id: Fl.H,v 1.8.2.2 2000/02/21 10:45:58 bill Exp $" +// "$Id: Fl.H,v 1.8.2.3 2000/03/08 16:02:24 carl Exp $" // // Main header file for the Fast Light Tool Kit (FLTK). // @@ -38,6 +38,8 @@ typedef void (Fl_Label_Draw_F)(const Fl_Label*, int,int,int,int, Fl_Align); typedef void (Fl_Label_Measure_F)(const Fl_Label*, int&, int&); typedef void (Fl_Box_Draw_F)(int,int,int,int, Fl_Color); +typedef void (*Fl_Timeout_Handler)(void*); + class Fl { Fl() {}; // no constructor! @@ -88,8 +90,8 @@ public: static FL_EXPORT int ready(); static FL_EXPORT int run(); static FL_EXPORT Fl_Widget* readqueue(); - static FL_EXPORT void add_timeout(double t,void (*cb)(void*),void* v = 0); - static FL_EXPORT void remove_timeout(void (*cb)(void*), void* = 0); + static FL_EXPORT void add_timeout(double t, Fl_Timeout_Handler,void* = 0); + static FL_EXPORT void remove_timeout(Fl_Timeout_Handler, void* = 0); static FL_EXPORT void add_fd(int fd, int when, void (*cb)(int,void*),void* =0); static FL_EXPORT void add_fd(int fd, void (*cb)(int, void*), void* = 0); static FL_EXPORT void remove_fd(int, int when); @@ -208,5 +210,5 @@ public: #endif // -// End of "$Id: Fl.H,v 1.8.2.2 2000/02/21 10:45:58 bill Exp $". +// End of "$Id: Fl.H,v 1.8.2.3 2000/03/08 16:02:24 carl Exp $". // |
