On 6 Mar 2007, at 18:52, imm wrote:
> The new awake_cb version in svn seems not to build under OSX...
>
> Compiling Fl_lock.cxx...
> Fl_lock.cxx: In function 'void thread_awake_cb(int, void*)':
> Fl_lock.cxx:266: error: no matching function for call to
> 'Fl::get_awake_handler_(void (**&)(void*), void*&)'
> Fl_lock.cxx:103: note: candidates are: static int
> Fl::get_awake_handler_(void (*&)(void*), void*&)
> make[1]: *** [Fl_lock.o] Error 1
> make: *** [all] Error 1

At first glance, I'd suggest that thread_awake_cb() should be like  
this...

static void thread_awake_cb(int fd, void*) {
   read(fd, &thread_message_, sizeof(void*));
   if (Fl::awake_cb) (*Fl::awake_cb)(thread_message_);
   Fl_Awake_Handler func;
   void *data;
   while (Fl::get_awake_handler_(func, data)==0) {
     (func)(data);
   }
}


.. or maybe not?

Cheers,
-- 
Ian

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to