From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrew.lunn@ascom.ch (Andrew Lunn) To: jld@redhat.com (John Dallaway) Cc: ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] serial_devio renamaed to cyg_serial_devio Date: Wed, 14 Jun 2000 02:25:00 -0000 Message-id: <200006140925.LAA01558@biferten.ma.tech.ascom.ch> References: <000f01bfd5da$425867a0$182782c2@cygnus.co.uk> X-SW-Source: 2000-06/msg00139.html Unfortunally this only works for 1.3.x. 1.2.x does not have the version info, just a #define if the package is included. My problem is 1.2.x defines #define CYGPKG_IO_SERIAL and 1.3.x defines #define CYGPKG_IO_SERIAL v1_3_5 #define CYGPKG_IO_SERIAL_v1_3_5 and i want something which says #if CYGPKG_IO_SERIAL > v1.2 new serial code fragment #else old serial code fragment #endif Any ideas anyone? Thanks Andrew [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi Andrew, > > To access eCos package versions: > > #include > > John Dallaway > > > -----Original Message----- > > From: ecos-discuss-owner@sourceware.cygnus.com > > [ mailto:ecos-discuss-owner@sourceware.cygnus.com]On Behalf Of Andrew > > Lunn > > Sent: 14 June 2000 09:21 > > To: ecos-discuss@sourceware.cygnus.com > > Subject: [ECOS] serial_devio renamaed to cyg_serial_devio > > > > Is it possible to get at the version number of an > > ecos package as a pre-processor symbol? That way i can have #ifdefs to > > select between 1.2.X and 1.3.X ways of doing things. > >