This is so that C89 compilers will not complain.
g_thread_init_glib (void)
{
static gboolean already_done;
+ GRealThread* main_thread;
if (already_done)
return;
/* We let the main thread (the one that calls g_thread_init) inherit
* the static_private data set before calling g_thread_init
*/
- GRealThread* main_thread = (GRealThread*) g_thread_self ();
+ main_thread = (GRealThread*) g_thread_self ();
/* setup the basic threading system */
g_threads_got_initialized = TRUE;