GLIB_CHECK_VERSION (was: Glib rand() function)
- From: Derek Simkowiak <dereks kd-dev com>
- To: wilhelmi ira uka de
- cc: gtk-devel-list redhat com
- Subject: GLIB_CHECK_VERSION (was: Glib rand() function)
- Date: Mon, 21 Feb 2000 16:22:03 -0800 (PST)
> Should there be
>
> gint g_rand(void);
> void g_srand(guint seed);
>In glib-1.3 there are such functions
Sebastian,
Thank your for your reply. Can you tell me what the first version
of Glib 1.3 had this? (i.e., was it 1.3.0 or 1.3.1. or what?)
I want to use this in my code:
if (GLIB_CHECK_VERSION (1, 3, 0))
[...use g_rand()...]
else
[...use rand()...]
So what minor verion of Glib did g_rand() show up in?
Also, what is the current minor version of the 1.3 series?
Finally, can I use the GLIB_CHECK_VERSION macro at compile time?
I.e.,
#if (GLIB_CHECK_VERSION (1, 3, 0))
[...use g_rand()...]
#else
[...use rand()...]
#endif
Thank You,
Derek Simkowiak
dereks@kd-dev.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]