Revert "gthread: G_STATIC_MUTEX_INIT: Fix this for the non-win32 case."
authorRyan Lortie <desrt@desrt.ca>
Wed, 26 Oct 2011 19:10:33 +0000 (15:10 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 26 Oct 2011 19:10:33 +0000 (15:10 -0400)
This reverts commit 52fd106724aa79ad57ecaa7ad9d340f8c89da06d.

glib/deprecated/gthread.h

index 987fc909ede3f917bb2c8d5fe5415e9d7ec4a4f6..095ecc28eec43ddb59d3950774c5ca726e81586c 100644 (file)
@@ -124,15 +124,7 @@ void     g_thread_foreach      (GFunc             thread_func,
 #endif
 
 #define g_static_mutex_get_mutex g_static_mutex_get_mutex_impl
-
-#ifndef G_OS_WIN32
-/* The use of PTHREAD_MUTEX_INITIALIZER is arbitrary.
- * but that struct field is unused anyway. */
-#define G_STATIC_MUTEX_INIT { NULL, PTHREAD_MUTEX_INITIALIZER }
-#else
 #define G_STATIC_MUTEX_INIT { NULL }
-#endif
-
 typedef struct
 {
   GMutex *mutex;