Re: Compilation on Debian SID

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers(at)postgresql(dot)org, philippe rimbault <philippe(at)rimbault(dot)org>
Subject: Re: Compilation on Debian SID
Date: 2011-11-16 17:43:08
Message-ID: CA+OCxozsexMOGEQtH7viBYTfyshnamsGVdo9bJUo6NPi1gv8gw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Tue, Nov 15, 2011 at 9:22 PM, Guillaume Lelarge
<guillaume(at)lelarge(dot)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

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Olly Betts 2011-11-26 00:38:54 Re: Compilation on Debian SID
Previous Message Dave Page 2011-11-16 09:21:26 Re: [PATCH] Improve autocompletion for SELECT statements