Re: Compile time GTK version info/define
- From: Chris Vine <chris cvine freeserve co uk>
- To: gtk-list gnome org
- Cc:
- Subject: Re: Compile time GTK version info/define
- Date: Tue, 7 Feb 2006 23:16:24 +0000
On Tuesday 07 February 2006 19:00, Zoran Rilak wrote:
> Hi Derek,
>
> > different versions of the GTK libraries. What define, if any, is around
> > to indicate what set of features are available. i.e. is there a GTK_2_6
> > define or some such thing?
>
> if you're using autoconf and automake to generate Makefiles for your
> project, you can determine which version of GTK+ is available prior to
> compilation and pass a define to your code. Here's a link which
> explains how to do it for GtkMM:
>
> http://mail.gnome.org/archives/gtkmm-list/2004-November/msg00202.html
>
> It should work for GTK+ as well with a few edits.
This approach is needed for gtkmm, but not for GTK+ which comes with
pre-defined macros in gtk/gtkversion.h.
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]