mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
Don't define GLIB_COMPILATION in libgthread
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.
This commit is contained in:
parent
735420e546
commit
be770969e9
@ -963,13 +963,8 @@ g_thread_lookup_native_funcs (void)
|
|||||||
G_GNUC_INTERNAL void
|
G_GNUC_INTERNAL void
|
||||||
g_thread_win32_init (void)
|
g_thread_win32_init (void)
|
||||||
{
|
{
|
||||||
if (g_thread_lookup_native_funcs ())
|
if (!g_thread_lookup_native_funcs ())
|
||||||
fprintf (stderr, "(debug) GThread using native mode\n");
|
g_thread_xp_init ();
|
||||||
else
|
|
||||||
{
|
|
||||||
fprintf (stderr, "(debug) GThread using Windows XP mode\n");
|
|
||||||
g_thread_xp_init ();
|
|
||||||
}
|
|
||||||
|
|
||||||
InitializeCriticalSection (&g_private_lock);
|
InitializeCriticalSection (&g_private_lock);
|
||||||
}
|
}
|
||||||
|
@ -36,13 +36,9 @@
|
|||||||
void
|
void
|
||||||
g_thread_init (gpointer init)
|
g_thread_init (gpointer init)
|
||||||
{
|
{
|
||||||
if (init != NULL)
|
|
||||||
g_warning ("GThread system no longer supports custom thread implementations.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
g_thread_init_with_errorcheck_mutexes (gpointer vtable)
|
g_thread_init_with_errorcheck_mutexes (gpointer vtable)
|
||||||
{
|
{
|
||||||
g_assert (vtable == NULL);
|
|
||||||
g_warning ("GThread system no longer supports errorcheck mutexes.");
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user