1 #ifndef MC_GLIBCOMPAT_H
2 #define MC_GLIBCOMPAT_H
4 /*** typedefs(not structures) and defined constants **********************************************/
6 #ifndef G_OPTION_ENTRY_NULL
7 #define G_OPTION_ENTRY_NULL \
8 { NULL, '\0', 0, 0, NULL, NULL, NULL }
9 #endif /* G_OPTION_ENTRY_NULL */
11 /*** enums ***************************************************************************************/
13 /*** structures declarations (and typedefs of structures)*****************************************/
15 /*** global variables defined in .c file *********************************************************/
17 /*** declarations of public functions ************************************************************/
19 #if ! GLIB_CHECK_VERSION (2, 63, 3)
20 void g_clear_slist (GSList
** slist_ptr
, GDestroyNotify destroy
);
21 void g_clear_list (GList
** list_ptr
, GDestroyNotify destroy
);
22 #endif /* ! GLIB_CHECK_VERSION (2, 63, 3) */
24 #if ! GLIB_CHECK_VERSION (2, 32, 0)
25 void g_queue_free_full (GQueue
* queue
, GDestroyNotify free_func
);
26 #endif /* ! GLIB_CHECK_VERSION (2, 32, 0) */
28 #if ! GLIB_CHECK_VERSION (2, 60, 0)
29 void g_queue_clear_full (GQueue
* queue
, GDestroyNotify free_func
);
30 #endif /* ! GLIB_CHECK_VERSION (2, 60, 0) */
32 /* There is no such API in GLib2 */
33 GString
*mc_g_string_copy (GString
* dest
, const GString
* src
);
35 /* There is no such API in GLib2 */
36 GString
*mc_g_string_dup (const GString
* s
);
38 /*** inline functions ****************************************************************************/
40 #endif /* MC_GLIBCOMPAT_H */