From 181f07931961cd40c5f45d3332814d54182ec427 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Wed, 17 Mar 1999 02:38:24 +0000 Subject: [PATCH] added GLIB_CHECK_VERSION() macro similar to GTK_CHECK_VERSION(). Wed Mar 17 03:14:56 1999 Tim Janik * glib.h: added GLIB_CHECK_VERSION() macro similar to GTK_CHECK_VERSION(). --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib.h | 5 +++++ glib/glib.h | 5 +++++ 10 files changed, 50 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3f2dbd963..9c34bb553 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 17 03:14:56 1999 Tim Janik + + * glib.h: added GLIB_CHECK_VERSION() macro similar to + GTK_CHECK_VERSION(). + Wed Mar 17 01:46:28 1999 Tim Janik * merges from glib-1-2: diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 3f2dbd963..9c34bb553 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Wed Mar 17 03:14:56 1999 Tim Janik + + * glib.h: added GLIB_CHECK_VERSION() macro similar to + GTK_CHECK_VERSION(). + Wed Mar 17 01:46:28 1999 Tim Janik * merges from glib-1-2: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 3f2dbd963..9c34bb553 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Wed Mar 17 03:14:56 1999 Tim Janik + + * glib.h: added GLIB_CHECK_VERSION() macro similar to + GTK_CHECK_VERSION(). + Wed Mar 17 01:46:28 1999 Tim Janik * merges from glib-1-2: diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 3f2dbd963..9c34bb553 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +Wed Mar 17 03:14:56 1999 Tim Janik + + * glib.h: added GLIB_CHECK_VERSION() macro similar to + GTK_CHECK_VERSION(). + Wed Mar 17 01:46:28 1999 Tim Janik * merges from glib-1-2: diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 3f2dbd963..9c34bb553 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Wed Mar 17 03:14:56 1999 Tim Janik + + * glib.h: added GLIB_CHECK_VERSION() macro similar to + GTK_CHECK_VERSION(). + Wed Mar 17 01:46:28 1999 Tim Janik * merges from glib-1-2: diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 3f2dbd963..9c34bb553 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Wed Mar 17 03:14:56 1999 Tim Janik + + * glib.h: added GLIB_CHECK_VERSION() macro similar to + GTK_CHECK_VERSION(). + Wed Mar 17 01:46:28 1999 Tim Janik * merges from glib-1-2: diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 3f2dbd963..9c34bb553 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Wed Mar 17 03:14:56 1999 Tim Janik + + * glib.h: added GLIB_CHECK_VERSION() macro similar to + GTK_CHECK_VERSION(). + Wed Mar 17 01:46:28 1999 Tim Janik * merges from glib-1-2: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 3f2dbd963..9c34bb553 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Wed Mar 17 03:14:56 1999 Tim Janik + + * glib.h: added GLIB_CHECK_VERSION() macro similar to + GTK_CHECK_VERSION(). + Wed Mar 17 01:46:28 1999 Tim Janik * merges from glib-1-2: diff --git a/glib.h b/glib.h index 5f489ae8d..01736c2b2 100644 --- a/glib.h +++ b/glib.h @@ -675,6 +675,11 @@ GUTILS_C_VAR const guint glib_micro_version; GUTILS_C_VAR const guint glib_interface_age; GUTILS_C_VAR const guint glib_binary_age; +#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))) /* Forward declarations of glib types. */ diff --git a/glib/glib.h b/glib/glib.h index 5f489ae8d..01736c2b2 100644 --- a/glib/glib.h +++ b/glib/glib.h @@ -675,6 +675,11 @@ GUTILS_C_VAR const guint glib_micro_version; GUTILS_C_VAR const guint glib_interface_age; GUTILS_C_VAR const guint glib_binary_age; +#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))) /* Forward declarations of glib types. */