Don't define GLIB_COMPILATION in libgthread
authorAlexander Larsson <alexl@redhat.com>
Tue, 18 Oct 2011 11:34:06 +0000 (13:34 +0200)
committerAlexander Larsson <alexl@redhat.com>
Tue, 18 Oct 2011 11:34:06 +0000 (13:34 +0200)
This was turning all the GLIB_VARs in the glib headers into
dllexports on windows, causing all sort of nastiness. libgthread is
mostly empty now anyway, so we don't need any GLIB_COMPILATION like
flag.

glib/gthread-win32.c
gthread/gthread-impl.c

index 96c6a1c..dd777c2 100644 (file)
@@ -963,13 +963,8 @@ g_thread_lookup_native_funcs (void)
 G_GNUC_INTERNAL void
 g_thread_win32_init (void)
 {
-  if (g_thread_lookup_native_funcs ())
-    fprintf (stderr, "(debug) GThread using native mode\n");
-  else
-    {
-      fprintf (stderr, "(debug) GThread using Windows XP mode\n");
-      g_thread_xp_init ();
-    }
+  if (!g_thread_lookup_native_funcs ())
+    g_thread_xp_init ();
 
   InitializeCriticalSection (&g_private_lock);
 }
index fd03b1d..c7f61a3 100644 (file)
 void
 g_thread_init (gpointer init)
 {
-  if (init != NULL)
-    g_warning ("GThread system no longer supports custom thread implementations.");
 }
 
 void
 g_thread_init_with_errorcheck_mutexes (gpointer vtable)
 {
-  g_assert (vtable == NULL);
-  g_warning ("GThread system no longer supports errorcheck mutexes.");
 }