[glib] Add private prototype for g_thread_init_glib()



commit 3eec796b18e56351638cc6c0c03ab481618d0e29
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Oct 16 20:58:02 2011 -0400

    Add private prototype for g_thread_init_glib()
    
    This function was never put in a header and was only used internally
    from libgthread, but we should keep the symbol around to avoid
    triggering any false-positives on ABI checkers.
    
    For -Wmissing-prototypes compatibility with this unusual case, we should
    add a private prototype in the .c file just before.

 glib/deprecated/gthread-deprecated.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/deprecated/gthread-deprecated.c b/glib/deprecated/gthread-deprecated.c
index 8e22795..cb685e3 100644
--- a/glib/deprecated/gthread-deprecated.c
+++ b/glib/deprecated/gthread-deprecated.c
@@ -192,6 +192,7 @@ g_thread_get_initialized (void)
 }
 
 /* We need this for ABI compatibility */
+void g_thread_init_glib (void);
 void g_thread_init_glib (void) { }
 
 /* Internal variables {{{1 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]