Fixed Mac OS X build
authorSam Lantinga <slouken@libsdl.org>
Tue, 23 Oct 2012 17:46:57 -0700
changeset 6604 70292a6d7dca
parent 6603 fc815cb0a2de
child 6605 59132ac5df74
Fixed Mac OS X build
src/thread/pthread/SDL_systhread.c
--- a/src/thread/pthread/SDL_systhread.c	Tue Oct 23 17:40:19 2012 -0700
+++ b/src/thread/pthread/SDL_systhread.c	Tue Oct 23 17:46:57 2012 -0700
@@ -95,7 +95,7 @@
 #if ( (__MACOSX__ && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)) || \
       (__IPHONEOS__ && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 30200)) )
         int (*dynamic_pthread_setname_np)(const char*);
-        *reinterpret_cast<void**>(&dynamic_pthread_setname_np) = dlsym(RTLD_DEFAULT, "pthread_setname_np");
+        *(void**)(&dynamic_pthread_setname_np) = dlsym(RTLD_DEFAULT, "pthread_setname_np");
         if ( dynamic_pthread_setname_np )
             dynamic_pthread_setname_np( name );
 #elif HAVE_PTHREAD_SETNAME_NP