gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/libbase utility.h


From: Markus Gothe
Subject: [Gnash-commit] gnash/libbase utility.h
Date: Sat, 29 Mar 2008 16:27:10 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  08/03/29 16:27:10

Modified files:
        libbase        : utility.h 

Log message:
        ifdef __APPLE_CC__

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&r1=1.47&r2=1.48

Patches:
Index: utility.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/utility.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- utility.h   29 Mar 2008 16:18:08 -0000      1.47
+++ utility.h   29 Mar 2008 16:27:10 -0000      1.48
@@ -238,7 +238,11 @@
 inline unsigned long int /* pthread_t */ get_thread_id(void)
 {
 #ifdef HAVE_PTHREADS
+# ifdef __APPLE_CC__
+    return reinterpret_cast<unsigned long int>(pthread_self());
+# else
     return static_cast<unsigned long int>(pthread_self());
+# endif 
 #else
 # ifdef _WIN32
     return GetCurrentThreadId();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]