summaryrefslogtreecommitdiff
path: root/test/threads.h
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2004-11-20 03:44:18 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2004-11-20 03:44:18 +0000
commitfc8d065cd73f6a9a5477ea5106da6b26c5cf9a29 (patch)
tree603bb2ac5525a281dc539eb1682a298e6a68fdf3 /test/threads.h
parent23bb0590651da3f342cddcd3c87aee38a1d067cc (diff)
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
Diffstat (limited to 'test/threads.h')
-rw-r--r--test/threads.h14
1 files changed, 11 insertions, 3 deletions
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 <windows.h>
# include <process.h>
@@ -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 <process.h>
+
+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 $".
//