Author: ianmacarthur
Date: 2011-05-30 06:44:57 -0700 (Mon, 30 May 2011)
New Revision: 8761
Log:
Simple tweak to get the threads demo to compile under mingw/win32



Modified:
   branches/branch-3.0/test/threads.h

Modified: branches/branch-3.0/test/threads.h
===================================================================
--- branches/branch-3.0/test/threads.h  2011-05-30 12:56:02 UTC (rev 8760)
+++ branches/branch-3.0/test/threads.h  2011-05-30 13:44:57 UTC (rev 8761)
@@ -43,41 +43,50 @@
 #ifndef Threads_H
 #  define Threads_H
 
-namespace fltk3 {
-
 #  if HAVE_PTHREAD_H
 // Use POSIX threading...
 
 #    include <pthread.h>
 
+namespace fltk3 {
+
 typedef pthread_t Thread;
 
 static int create_thread(Thread& t, void *(*f) (void *), void* p) {
   return pthread_create((pthread_t*)&t, 0, f, p);
-}
+} // create_thread
 
+} // namespace fltk3
+
 #  elif defined(WIN32) && !defined(__WATCOMC__) // Use Windows threading...
 
 #    include <windows.h>
 #    include <process.h>
 
+namespace fltk3 {
+
 typedef unsigned long Thread;
 
 static int create_thread(Thread& t, void *(*f) (void *), void* p) {
   return t = (Thread)_beginthread((void( __cdecl * )( void * ))f, 0, p);
-}
+} // create_thread
 
+} // namespace fltk3
+
 #  elif defined(__WATCOMC__)
 #    include <process.h>
 
+namespace fltk3 {
+
 typedef unsigned long Thread;
 
 static int create_thread(Thread& t, void *(*f) (void *), void* p) {
   return t = (Thread)_beginthread((void(* )( void * ))f, 32000, p);
-}
+} // create_thread
+
+} // namespace fltk3
+
 #  endif // !HAVE_PTHREAD_H
-  
-}
 
 #endif // !Threads_h
 

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

Reply via email to