On Tue, Nov 15, 2011 at 9:22 PM, Guillaume Lelarge
<[email protected]> wrote:
>
> Biggest issue I have is that I actually don't understand the statement:
>
> #define DECLARE_INT_LOG_FUNCTION(level)                            \
> extern void wxVLog##level(const wxChar *szFormat, va_list argptr); \
> extern void wxLog##level(const wxChar *szFormat, ...) ATTRIBUTE_PRINTF_1
>
> Dave, according to git, you're the one that added this line. Can you do
> something to make it work on debian unstable?

## is the concatenation operator, so:

DECLARE_INT_LOG_FUNCTION(Debug)

Should become:

extern void wxVLogDebug(const wxChar *szFormat, va_list argptr); \
extern void wxLogDebug(const wxChar *szFormat, ...) ATTRIBUTE_PRINTF_1

when it goes through the preprocessor (ignoring ATTRIBUTE_PRINTF_1 of course).

I would probably suggest something like Philippe's proposed fix,
though I'm not sure why it's needed (I don't have an affected system
here to play with at the moment).

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Reply via email to