This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: serial_devio renamaed to cyg_serial_devio


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 <pkgconf/system.h>
> 
> 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.
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]