List:MySQL++« Previous MessageNext Message »
From:Matt Dargavel Date:March 6 2006 9:55am
Subject:Re: ALPHA RELEASE: v2.1.0.alpha3
View as plain text  
Hi Chris / Warren.

        Just to let you know that when I applied the SSQLS statics patch 
on version 2.0.7 and then built it using Visual C++ it didn't like the 
macro Chris mentions below.  In Visual C I think you have to use the 
macro __VA_ARGS__.  I've attached the code I've used below in case it's 
useful.

            Regards,

                    Matt.


#ifdef MYSQLPP_SSQLS_NO_STATICS
    #ifdef _MSC_VER
        #define MYSQLPP_SSQLS_EXPAND(...)
    #else
       #define MYSQLPP_SSQLS_EXPAND(a...)
    #endif
#else
    #ifdef _MSC_VER
        #define MYSQLPP_SSQLS_EXPAND(...) __VA_ARGS__
    #else
        #define MYSQLPP_SSQLS_EXPAND(a...) a
    #endif
#endif


Chris Frey wrote:
> On Sat, Mar 04, 2006 at 02:23:51AM -0700, Warren Young wrote:
>   
>> - Applied Viktor Stark's multiple static member SSQLS patch
>>     
>
> Was just playing with the new gcc 4.1.0 and giving mysql++ a test compile,
> and it spit out this new warning:
>
> ../lib/custom.h:18:31: warning: ISO C does not permit named variadic macros
>
> That line is:
>
> #ifdef MYSQLPP_SSQLS_NO_STATICS
> #define MYSQLPP_SSQLS_EXPAND(a...)
> #else
> #define MYSQLPP_SSQLS_EXPAND(a...) a		<--- here
> #endif
>
> This probably doesn't matter if it works on all our supported compilers,
> just thought I'd mention it.
>
> - Chris
>
>
>   


-- 

======================================================
*Matthew Dargavel*
Software Engineer
Shout Telecoms Ltd
shout-telecoms.com <http://www.shout-telecoms.com>

Tel:  +44 (0) 1243 573111
Fax: +44 (0) 1243 573777

This message is intended only for the use of the person(s) ("the 
intended recipient(s)") to whom it is addressed. It may contain 
information which is privileged and confidential within the meaning of 
applicable law. If you are not the intended recipient, please contact 
the sender as soon as possible. The views expressed in this 
communication may not necessarily be the views held by Shout Telecoms Ltd.


Thread
ALPHA RELEASE: v2.1.0.alpha3Warren Young4 Mar
  • Re: ALPHA RELEASE: v2.1.0.alpha3Chris Frey4 Mar
    • Re: ALPHA RELEASE: v2.1.0.alpha3Matt Dargavel6 Mar
      • Re: ALPHA RELEASE: v2.1.0.alpha3Warren Young6 Mar