List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:July 21 2005 10:50am
Subject:Re: mysqlpp 2.0beta
View as plain text  
On Mon, Jul 18, 2005 at 09:19:53AM -0700, J Robinson wrote:
> One question: I'd like to be able to maintain one code
> base that works with 1.7 and 2.0 for the next while.  
> 
> Is there a #define (or other methodology) I can use to
> detect the version of mysql++ installed and
> conditionally compile code for mysqlpp 1.7.XX or 2.0
> as appropriate?  

I think this is a reasonable request.  Any objections to adding this
to mysql++.h:

#define MYSQLPP_LIB_VERSION 200	// version 2.0.x of the library

This would be incremented like this:

#define MYSQLPP_LIB_VERSION 201	// version 2.1.x of the library

etc. and would allow:

#if MYSQLPP_LIB_VERSION >= 200
blah
#else
...
#endif

For those that need it.

- Chris

Thread
mysqlpp 2.0betaJ Robinson18 Jul
  • Re: mysqlpp 2.0betaWarren Young18 Jul
  • Re: mysqlpp 2.0betaChris Frey21 Jul
    • Re: mysqlpp 2.0betaWarren Young22 Jul
      • Re: mysqlpp 2.0betaChris Frey22 Jul
        • Re: mysqlpp 2.0betaWarren Young22 Jul
          • Re: mysqlpp 2.0betaChris Frey30 Jul
            • Re: mysqlpp 2.0betaChris Frey30 Jul
            • Re: mysqlpp 2.0betaWarren Young1 Aug