1 #ifndef MC_GLIBCOMPAT_H
2 #define MC_GLIBCOMPAT_H
4 /*** typedefs(not structures) and defined constants **********************************************/
6 /*** enums ***************************************************************************************/
8 /*** structures declarations (and typedefs of structures)*****************************************/
10 /*** global variables defined in .c file *********************************************************/
12 /*** declarations of public functions ************************************************************/
14 #if ! GLIB_CHECK_VERSION (2, 63, 3)
15 void g_clear_slist (GSList
** slist_ptr
, GDestroyNotify destroy
);
16 void g_clear_list (GList
** list_ptr
, GDestroyNotify destroy
);
17 #endif /* ! GLIB_CHECK_VERSION (2, 63, 3) */
19 #if ! GLIB_CHECK_VERSION (2, 32, 0)
20 void g_queue_free_full (GQueue
* queue
, GDestroyNotify free_func
);
21 #endif /* ! GLIB_CHECK_VERSION (2, 32, 0) */
23 #if ! GLIB_CHECK_VERSION (2, 60, 0)
24 void g_queue_clear_full (GQueue
* queue
, GDestroyNotify free_func
);
25 #endif /* ! GLIB_CHECK_VERSION (2, 60, 0) */
27 /* There is no such API in GLib2 */
28 GString
*mc_g_string_copy (GString
* dest
, const GString
* src
);
30 /*** inline functions ****************************************************************************/
32 #endif /* MC_GLIBCOMPAT_H */