[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Patch] adding macro to check for a specific major/minor

From: Marcus Rueckert <darix_at_web.de>
Date: 2005-05-12 20:45:06 CEST

hi

this is a little macro i found in the apache source.
i used it in [1] already and it works nicely.
Justin Erenkrantz from the apache folks said it would be ok to use it in
subversion.

[[[
Index: subversion/include/svn_version.h
===================================================================
--- subversion/include/svn_version.h (revision 14707)
+++ subversion/include/svn_version.h (working copy)
@@ -238,6 +238,13 @@
  */
   const svn_version_t *svn_subr_version (void);

    +/* little macro borrowed from the apache source code.
    + * Allows to check for a specific svn version.
    + */
    +#define SVN_VER_AT_LEAST(major,minor) \
    + ((major) < SVN_VER_MAJOR \
    + || ((major) == SVN_VER_MAJOR \
    + && (minor) <= SVN_VER_MINOR))

      #ifdef __cplusplus
]]]

darix

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 12 20:52:21 2005

This is an archived mail posted to the Subversion Dev mailing list.