glibcompat.h 1.3 KB

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