removes some warnings on FreeBSD
authorRafaël Carré <funman@videolan.org>
Sat, 3 Nov 2007 12:54:19 +0000 (12:54 +0000)
committerRafaël Carré <funman@videolan.org>
Sat, 3 Nov 2007 12:54:19 +0000 (12:54 +0000)
include/vlc_threads_funcs.h

index 5d0c74c..00ae68c 100644 (file)
@@ -69,7 +69,7 @@ VLC_EXPORT( void, __vlc_thread_join,   ( vlc_object_t *, const char *, int ) );
 #define vlc_mutex_lock( P_MUTEX )                                           \
     __vlc_mutex_lock( __FILE__, __LINE__, P_MUTEX )
 
 #define vlc_mutex_lock( P_MUTEX )                                           \
     __vlc_mutex_lock( __FILE__, __LINE__, P_MUTEX )
 
-#ifdef __APPLE__
+#if defined( __APPLE__ ) || defined( __FreeBSD__ )
 #   define CAST_PTHREAD_TO_INT(t) (unsigned long int)(uintptr_t)(void *)t
 #else
 #   define CAST_PTHREAD_TO_INT(t) (unsigned long int)t
 #   define CAST_PTHREAD_TO_INT(t) (unsigned long int)(uintptr_t)(void *)t
 #else
 #   define CAST_PTHREAD_TO_INT(t) (unsigned long int)t