1 #ifndef MC_GLIBCOMPAT_H
2 #define MC_GLIBCOMPAT_H
4 #if ! GLIB_CHECK_VERSION (2, 22, 0)
5 #include <stdarg.h> /* for g_error_new_valist() */
6 #endif /* ! GLIB_CHECK_VERSION (2, 22, 0) */
8 /*** typedefs(not structures) and defined constants **********************************************/
10 /*** enums ***************************************************************************************/
12 /*** structures declarations (and typedefs of structures)*****************************************/
14 /*** global variables defined in .c file *********************************************************/
16 /*** declarations of public functions ************************************************************/
18 #if ! GLIB_CHECK_VERSION (2, 16, 0)
19 int g_strcmp0 (const char *str1
, const char *str2
);
20 #endif /* ! GLIB_CHECK_VERSION (2, 16, 0) */
22 #if ! GLIB_CHECK_VERSION (2, 22, 0)
23 GError
*g_error_new_valist (GQuark domain
, gint code
, const gchar
* format
, va_list args
);
24 #endif /* ! GLIB_CHECK_VERSION (2, 22, 0) */
26 #if ! GLIB_CHECK_VERSION (2, 28, 0)
27 void g_slist_free_full (GSList
* list
, GDestroyNotify free_func
);
28 void g_list_free_full (GList
* list
, GDestroyNotify free_func
);
29 #endif /* ! GLIB_CHECK_VERSION (2, 28, 0) */
31 /*** inline functions ****************************************************************************/
33 #endif /* MC_GLIBCOMPAT_H */