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 [thread overview]
Message-ID: <200006140925.LAA01558@biferten.ma.tech.ascom.ch> (raw)
In-Reply-To: <000f01bfd5da$425867a0$182782c2@cygnus.co.uk>
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.
>
>
next prev parent reply other threads:[~2000-06-14 2:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-14 1:21 Andrew Lunn
2000-06-14 1:26 ` John Dallaway
2000-06-14 2:25 ` Andrew Lunn [this message]
2000-06-14 4:58 ` Bart Veer
2000-06-14 5:18 ` Andrew Lunn
2000-06-14 7:26 ` Bart Veer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200006140925.LAA01558@biferten.ma.tech.ascom.ch \
--to=andrew.lunn@ascom.ch \
--cc=ecos-discuss@sourceware.cygnus.com \
--cc=jld@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).