Win32: attempt to fix VLC_STATIC_MUTEX in C++ code
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 31 Jan 2009 18:12:26 +0000 (20:12 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 31 Jan 2009 18:12:26 +0000 (20:12 +0200)
include/vlc_threads.h

index c990832..e7acc8d 100644 (file)
@@ -122,10 +122,10 @@ typedef struct
 
 typedef struct
 {
-    CRITICAL_SECTION mutex;
     LONG initialized;
+    CRITICAL_SECTION mutex;
 } vlc_mutex_t;
-#define VLC_STATIC_MUTEX { .initialized = 0, }
+#define VLC_STATIC_MUTEX { 0, }
 
 typedef HANDLE  vlc_cond_t;
 typedef DWORD   vlc_threadvar_t;