From fc8d065cd73f6a9a5477ea5106da6b26c5cf9a29 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 20 Nov 2004 03:44:18 +0000 Subject: The configure script did not support --disable-localfoo to completely disable image file support (STR #582) The Visual C++ 6.0 project files still listed the old JPEG, PNG, and ZLIB library names (STR #577) Fixed the scandir() conditional code for HP-UX 11i (STR #585) Fl_Text_Display didn't support CTRL/CMD-A/C (STR #601) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/threads.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'test/threads.h') diff --git a/test/threads.h b/test/threads.h index f82bcc21f..d7a74a94a 100644 --- a/test/threads.h +++ b/test/threads.h @@ -1,5 +1,5 @@ // -// "$Id: threads.h,v 1.1.2.7 2004/04/11 04:39:01 easysw Exp $" +// "$Id: threads.h,v 1.1.2.8 2004/11/20 03:44:18 easysw Exp $" // // Simple threading API for the Fast Light Tool Kit (FLTK). // @@ -53,7 +53,7 @@ static int fl_create_thread(Fl_Thread& t, void *(*f) (void *), void* p) return pthread_create((pthread_t*)&t, 0, f, p); } -# elif defined(WIN32) // Use Windows threading... +# elif defined(WIN32) && !defined(__WATCOMC__) // Use Windows threading... # include # include @@ -64,9 +64,17 @@ static int fl_create_thread(Fl_Thread& t, void *(*f) (void *), void* p) { return t = (Fl_Thread)_beginthread((void( __cdecl * )( void * ))f, 0, p); } +# elif defined(__WATCOMC__) +# include + +typedef unsigned long Fl_Thread; + +static int fl_create_thread(Fl_Thread& t, void *(*f) (void *), void* p) { + return t = (Fl_Thread)_beginthread((void(* )( void * ))f, 32000, p); +} # endif // !HAVE_PTHREAD_H #endif // !Threads_h // -// End of "$Id: threads.h,v 1.1.2.7 2004/04/11 04:39:01 easysw Exp $". +// End of "$Id: threads.h,v 1.1.2.8 2004/11/20 03:44:18 easysw Exp $". // -- cgit v1.2.3