Use the same GMutex structure as the configure-generated glibconfig.h
authorTor Lillqvist <tml@iki.fi>
Mon, 29 Jan 2001 21:33:37 +0000 (21:33 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 29 Jan 2001 21:33:37 +0000 (21:33 +0000)
2001-01-29  Tor Lillqvist  <tml@iki.fi>

* glibconfig.h.win32.in: Use the same GMutex structure as the
configure-generated glibconfig.h does.

* gstrfuncs.c (g_strsignal): Declare strsignal() on Cygwin, too,
says jbdoll@kepri.re.kr.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gstrfuncs.c
glibconfig.h.win32.in
gstrfuncs.c

index a875da4..3839b56 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-01-29  Tor Lillqvist  <tml@iki.fi>
+
+       * glibconfig.h.win32.in: Use the same GMutex structure as the
+       configure-generated glibconfig.h does.
+
+       * gstrfuncs.c (g_strsignal): Declare strsignal() on Cygwin, too,
+       says jbdoll@kepri.re.kr.
+
 2001-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gthread.c: Broadcast the condition, if there are waiting
index a875da4..3839b56 100644 (file)
@@ -1,3 +1,11 @@
+2001-01-29  Tor Lillqvist  <tml@iki.fi>
+
+       * glibconfig.h.win32.in: Use the same GMutex structure as the
+       configure-generated glibconfig.h does.
+
+       * gstrfuncs.c (g_strsignal): Declare strsignal() on Cygwin, too,
+       says jbdoll@kepri.re.kr.
+
 2001-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gthread.c: Broadcast the condition, if there are waiting
index a875da4..3839b56 100644 (file)
@@ -1,3 +1,11 @@
+2001-01-29  Tor Lillqvist  <tml@iki.fi>
+
+       * glibconfig.h.win32.in: Use the same GMutex structure as the
+       configure-generated glibconfig.h does.
+
+       * gstrfuncs.c (g_strsignal): Declare strsignal() on Cygwin, too,
+       says jbdoll@kepri.re.kr.
+
 2001-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gthread.c: Broadcast the condition, if there are waiting
index a875da4..3839b56 100644 (file)
@@ -1,3 +1,11 @@
+2001-01-29  Tor Lillqvist  <tml@iki.fi>
+
+       * glibconfig.h.win32.in: Use the same GMutex structure as the
+       configure-generated glibconfig.h does.
+
+       * gstrfuncs.c (g_strsignal): Declare strsignal() on Cygwin, too,
+       says jbdoll@kepri.re.kr.
+
 2001-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gthread.c: Broadcast the condition, if there are waiting
index a875da4..3839b56 100644 (file)
@@ -1,3 +1,11 @@
+2001-01-29  Tor Lillqvist  <tml@iki.fi>
+
+       * glibconfig.h.win32.in: Use the same GMutex structure as the
+       configure-generated glibconfig.h does.
+
+       * gstrfuncs.c (g_strsignal): Declare strsignal() on Cygwin, too,
+       says jbdoll@kepri.re.kr.
+
 2001-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gthread.c: Broadcast the condition, if there are waiting
index a875da4..3839b56 100644 (file)
@@ -1,3 +1,11 @@
+2001-01-29  Tor Lillqvist  <tml@iki.fi>
+
+       * glibconfig.h.win32.in: Use the same GMutex structure as the
+       configure-generated glibconfig.h does.
+
+       * gstrfuncs.c (g_strsignal): Declare strsignal() on Cygwin, too,
+       says jbdoll@kepri.re.kr.
+
 2001-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gthread.c: Broadcast the condition, if there are waiting
index a875da4..3839b56 100644 (file)
@@ -1,3 +1,11 @@
+2001-01-29  Tor Lillqvist  <tml@iki.fi>
+
+       * glibconfig.h.win32.in: Use the same GMutex structure as the
+       configure-generated glibconfig.h does.
+
+       * gstrfuncs.c (g_strsignal): Declare strsignal() on Cygwin, too,
+       says jbdoll@kepri.re.kr.
+
 2001-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gthread.c: Broadcast the condition, if there are waiting
index a875da4..3839b56 100644 (file)
@@ -1,3 +1,11 @@
+2001-01-29  Tor Lillqvist  <tml@iki.fi>
+
+       * glibconfig.h.win32.in: Use the same GMutex structure as the
+       configure-generated glibconfig.h does.
+
+       * gstrfuncs.c (g_strsignal): Declare strsignal() on Cygwin, too,
+       says jbdoll@kepri.re.kr.
+
 2001-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gthread.c: Broadcast the condition, if there are waiting
index 792278a..619d20f 100644 (file)
@@ -676,7 +676,7 @@ g_strsignal (gint signum)
   char *msg;
 
 #ifdef HAVE_STRSIGNAL
-#ifdef G_OS_BEOS
+#if defined(G_OS_BEOS) || defined(G_WITH_CYGWIN)
 extern const char * strsignal(int);
 #else /* !G_OS_BEOS */
   /* this is declared differently (const) in string.h on BeOS */
index 3e31ad3..482a19c 100644 (file)
@@ -134,19 +134,22 @@ typedef struct _GStaticMutex GStaticMutex;
 struct _GStaticMutex
 {
   struct _GMutex *runtime_mutex;
-  union {
-    /* The size of the pad array should be sizeof (pthread_mutex_t) */
-    /* This value corresponds to the 1999-05-30 version of pthreads-win32 */
-    char   pad[4];
-    double dummy_double;
-    void  *dummy_pointer;
-    long   dummy_long;
-  } aligned_pad_u;
+  struct {
+    union {
+      /* The size of the pad array should be sizeof (pthread_mutex_t) */
+      /* This value corresponds to the 1999-05-30 version of pthreads-win32 */
+      char   pad[4];
+      double dummy_double;
+      void  *dummy_pointer;
+      long   dummy_long;
+    } mutex;
+    void *debug_info;
+  } static_mutex;
 };
 /* This should be NULL followed by the bytes in PTHREAD_MUTEX_INITIALIZER */
 #define        G_STATIC_MUTEX_INIT     { NULL, { { 255, 255, 255, 255 } } }
 #define        g_static_mutex_get_mutex(mutex) \
-  (g_thread_use_default_impl ? ((GMutex*) &((mutex)->aligned_pad_u)) : \
+  (g_thread_use_default_impl ? ((GMutex*) &((mutex)->static_mutex)) : \
    g_static_mutex_get_mutex_impl (&((mutex)->runtime_mutex)))
 /* This represents a system thread as used by the implementation. An
  * alien implementaion, as loaded by g_thread_init can only count on
index 792278a..619d20f 100644 (file)
@@ -676,7 +676,7 @@ g_strsignal (gint signum)
   char *msg;
 
 #ifdef HAVE_STRSIGNAL
-#ifdef G_OS_BEOS
+#if defined(G_OS_BEOS) || defined(G_WITH_CYGWIN)
 extern const char * strsignal(int);
 #else /* !G_OS_BEOS */
   /* this is declared differently (const) in string.h on BeOS */