mc/lib/glibcompat.h
Andrew Borodin 8c88aa01ad Remove code required for GLib < 2.14.0.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-02-26 09:20:54 +03:00

34 lines
1.3 KiB
C

#ifndef MC_GLIBCOMPAT_H
#define MC_GLIBCOMPAT_H
#if ! GLIB_CHECK_VERSION (2, 22, 0)
#include <stdarg.h> /* for g_error_new_valist() */
#endif /* ! GLIB_CHECK_VERSION (2, 22, 0) */
/*** typedefs(not structures) and defined constants **********************************************/
/*** enums ***************************************************************************************/
/*** structures declarations (and typedefs of structures)*****************************************/
/*** global variables defined in .c file *********************************************************/
/*** declarations of public functions ************************************************************/
#if ! GLIB_CHECK_VERSION (2, 16, 0)
int g_strcmp0 (const char *str1, const char *str2);
#endif /* ! GLIB_CHECK_VERSION (2, 16, 0) */
#if ! GLIB_CHECK_VERSION (2, 22, 0)
GError *g_error_new_valist (GQuark domain, gint code, const gchar * format, va_list args);
#endif /* ! GLIB_CHECK_VERSION (2, 22, 0) */
#if ! GLIB_CHECK_VERSION (2, 28, 0)
void g_slist_free_full (GSList * list, GDestroyNotify free_func);
void g_list_free_full (GList * list, GDestroyNotify free_func);
#endif /* ! GLIB_CHECK_VERSION (2, 28, 0) */
/*** inline functions ****************************************************************************/
#endif /* MC_GLIBCOMPAT_H */