added GLIB_CHECK_VERSION() macro similar to GTK_CHECK_VERSION().

Wed Mar 17 03:14:56 1999  Tim Janik  <timj@gtk.org>

        * glib.h: added GLIB_CHECK_VERSION() macro similar to
        GTK_CHECK_VERSION().
This commit is contained in:
Tim Janik 1999-03-17 02:38:24 +00:00 committed by Tim Janik
parent 5f17e39e2a
commit 181f079319
10 changed files with 50 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Mar 17 03:14:56 1999 Tim Janik <timj@gtk.org>
* glib.h: added GLIB_CHECK_VERSION() macro similar to
GTK_CHECK_VERSION().
Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
* merges from glib-1-2:

View File

@ -1,3 +1,8 @@
Wed Mar 17 03:14:56 1999 Tim Janik <timj@gtk.org>
* glib.h: added GLIB_CHECK_VERSION() macro similar to
GTK_CHECK_VERSION().
Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
* merges from glib-1-2:

View File

@ -1,3 +1,8 @@
Wed Mar 17 03:14:56 1999 Tim Janik <timj@gtk.org>
* glib.h: added GLIB_CHECK_VERSION() macro similar to
GTK_CHECK_VERSION().
Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
* merges from glib-1-2:

View File

@ -1,3 +1,8 @@
Wed Mar 17 03:14:56 1999 Tim Janik <timj@gtk.org>
* glib.h: added GLIB_CHECK_VERSION() macro similar to
GTK_CHECK_VERSION().
Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
* merges from glib-1-2:

View File

@ -1,3 +1,8 @@
Wed Mar 17 03:14:56 1999 Tim Janik <timj@gtk.org>
* glib.h: added GLIB_CHECK_VERSION() macro similar to
GTK_CHECK_VERSION().
Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
* merges from glib-1-2:

View File

@ -1,3 +1,8 @@
Wed Mar 17 03:14:56 1999 Tim Janik <timj@gtk.org>
* glib.h: added GLIB_CHECK_VERSION() macro similar to
GTK_CHECK_VERSION().
Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
* merges from glib-1-2:

View File

@ -1,3 +1,8 @@
Wed Mar 17 03:14:56 1999 Tim Janik <timj@gtk.org>
* glib.h: added GLIB_CHECK_VERSION() macro similar to
GTK_CHECK_VERSION().
Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
* merges from glib-1-2:

View File

@ -1,3 +1,8 @@
Wed Mar 17 03:14:56 1999 Tim Janik <timj@gtk.org>
* glib.h: added GLIB_CHECK_VERSION() macro similar to
GTK_CHECK_VERSION().
Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
* merges from glib-1-2:

5
glib.h
View File

@ -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.
*/

View File

@ -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.
*/