12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef __G_VERSION_H__
- #define __G_VERSION_H__
- #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
- #error "Only <glib.h> can be included directly."
- #endif
- #include <glib/gtypes.h>
- G_BEGIN_DECLS
- GLIB_VAR const guint glib_major_version;
- GLIB_VAR const guint glib_minor_version;
- GLIB_VAR const guint glib_micro_version;
- GLIB_VAR const guint glib_interface_age;
- GLIB_VAR const guint glib_binary_age;
- GLIB_AVAILABLE_IN_ALL
- const gchar * glib_check_version (guint required_major,
- guint required_minor,
- guint required_micro);
- #define GLIB_CHECK_VERSION(major,minor,micro) \
- (GLIB_MAJOR_VERSION > (major) || \
- (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION > (minor)) || \
- (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION == (minor) && \
- GLIB_MICRO_VERSION >= (micro)))
- G_END_DECLS
- #endif
|