Re: Compilation on Debian SID - Mailing list pgadmin-hackers

From Dave Page
Subject Re: Compilation on Debian SID
Date
Msg-id CA+OCxozsexMOGEQtH7viBYTfyshnamsGVdo9bJUo6NPi1gv8gw@mail.gmail.com
Whole thread Raw
In response to Re: Compilation on Debian SID  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgadmin-hackers
On Tue, Nov 15, 2011 at 9:22 PM, Guillaume Lelarge
<guillaume@lelarge.info> 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

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: [PATCH] Improve autocompletion for SELECT statements
Next
From: Olly Betts
Date:
Subject: Re: Compilation on Debian SID