invert gthread-impl includes

configure.ac defined G_THREAD_SOURCE and gthread-impl would #include it.

Instead, since we only have two thread implementations now, and since we
always use the Windows one only on Windows, move the logic to the
Makefile, predicated on 'if OS_WIN32'.  Then have the chosen backend do
the #include "gthread-impl.c" from there.

Remove the G_THREAD_SOURCE define from configure.ac.
This commit is contained in:
Ryan Lortie
2011-08-31 17:40:01 -04:00
parent fc6a9275a4
commit 96e4896804
5 changed files with 13 additions and 10 deletions

View File

@@ -31,13 +31,6 @@
* MT safe
*/
#include "config.h"
#include "glib.h"
#include "gthreadprivate.h"
#include G_THREAD_SOURCE
void
g_thread_init (GThreadFunctions *init)
{