]> git.sesse.net Git - vlc/commitdiff
C++ fun
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 28 Dec 2007 20:37:40 +0000 (20:37 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 28 Dec 2007 20:37:40 +0000 (20:37 +0000)
include/vlc_threads_funcs.h

index 5333d78b477f6292e4946de5fb9f7b9daa4ec795..ec4aa5a59352628fd039dcf1255167c8517fe8e0 100644 (file)
@@ -79,7 +79,7 @@ VLC_EXPORT( void, __vlc_thread_join,   ( vlc_object_t *, const char *, int ) );
 #if defined( PTHREAD_COND_T_IN_PTHREAD_H )
 static inline int CAST_PTHREAD_TO_INT (pthread_t th)
 {
-     union { pthread_t th; int i; } v = { .i = 0 };
+     union { pthread_t th; int i; } v = { };
      v.th = th;
      return v.i;
 }