You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jeff Trawick <tr...@gmail.com> on 2005/08/30 13:08:48 UTC
APR_VERSION_AT_LEAST() macro?
Re: APR_VERSION_AT_LEAST() macro?
Posted by Jeff Trawick <tr...@gmail.com>.
On 8/30/05, Joe Orton <jo...@redhat.com> wrote:
> On Tue, Aug 30, 2005 at 07:08:48AM -0400, Jeff Trawick wrote:
> >
> > +#define APR_VERSION_AT_LEAST(major,minor,patch) \
> > +(((major) < APR_MAJOR_VERSION) \
> > + || ((major) == APR_MAJOR_VERSION && (minor) < APR_MINOR_VERSION) \
> > + || ((major) == APR_MAJOR_VERSION && (minor) == APR_MINOR_VERSION && (patch) <= APR_PATCH_VERSION))
> >
> > #if defined(APR_IS_DEV_VERSION) || defined(DOXYGEN)
> > /** Internal: string form of the "is dev" flag */
>
> +1 with a note that the macro is only available from 1.3.0 onwards (and
> so somewhat defeating the point but hey ;)
Understood, but maybe there will be some time far in the future when I
can actually use it :(
Re: APR_VERSION_AT_LEAST() macro?
Posted by Joe Orton <jo...@redhat.com>.
On Tue, Aug 30, 2005 at 07:08:48AM -0400, Jeff Trawick wrote:
>
> +#define APR_VERSION_AT_LEAST(major,minor,patch) \
> +(((major) < APR_MAJOR_VERSION) \
> + || ((major) == APR_MAJOR_VERSION && (minor) < APR_MINOR_VERSION) \
> + || ((major) == APR_MAJOR_VERSION && (minor) == APR_MINOR_VERSION && (patch) <= APR_PATCH_VERSION))
>
> #if defined(APR_IS_DEV_VERSION) || defined(DOXYGEN)
> /** Internal: string form of the "is dev" flag */
+1 with a note that the macro is only available from 1.3.0 onwards (and
so somewhat defeating the point but hey ;)
joe