gthread/: fix up declarations
authorRyan Lortie <desrt@desrt.ca>
Mon, 17 Oct 2011 01:50:26 +0000 (21:50 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 17 Oct 2011 01:50:26 +0000 (21:50 -0400)
g_thread_init() is now a deprecated API, so drop G_DISABLE_DEPRECATED
from the CFLAGS for gthread/.  Add the missing declaration for
g_thread_init_with_errorcheck_mutexes() back to deprecated/gthread.h.

glib/deprecated/gthread.h
gthread/Makefile.am
gthread/gthread-impl.c

index 7a5c327..6dc0b7f 100644 (file)
@@ -257,6 +257,8 @@ gboolean g_once_init_enter_impl          (volatile gsize *location);
 
 GLIB_DEPRECATED
 void     g_thread_init                   (gpointer vtable);
+GLIB_DEPRECATED
+void    g_thread_init_with_errorcheck_mutexes (gpointer vtable);
 
 GLIB_DEPRECATED
 gboolean g_thread_get_initialized        (void);
index 7ff1c5b..4cf4df0 100644 (file)
@@ -6,8 +6,7 @@ AM_CPPFLAGS =                           \
        -DG_LOG_DOMAIN=\"GThread\"      \
        -DGLIB_COMPILATION              \
        @GTHREAD_COMPILE_IMPL_DEFINES@  \
-       @GLIB_DEBUG_FLAGS@              \
-       -DG_DISABLE_DEPRECATED
+       @GLIB_DEBUG_FLAGS@
 
 EXTRA_DIST +=                          \
                makefile.msc.in         \
index b0480ea..fd03b1d 100644 (file)
@@ -31,7 +31,7 @@
  * MT safe
  */
 
-#include "glib.h"
+#include <glib.h>
 
 void
 g_thread_init (gpointer init)