On Wed, Jul 27, 2011 at 2:12 PM, Sebastian Jaenicke
wrote:
> On Wed, Jul 27, 2011 at 09:34:20AM -0700, Ioana Danes wrote:
>
>> #ifdef PG_MODULE_MAGIC
>
> #ifndef
Just to avoid confusion... #ifdef *is* correct. See:
http://www.postgresql.org/docs/current/static/xfunc-c.html
(I can't commen
On 07/27/2011 12:38 PM, Ioana Danes wrote:
> Thanks a lot Sebastian
>
> --- On Wed, 7/27/11, Sebastian Jaenicke
> wrote:
>
>> From: Sebastian Jaenicke
>> Subject: Re: [GENERAL] error when compiling a c function
>> To: "Ioana Danes"
>> Cc: &quo
Thanks a lot Sebastian
--- On Wed, 7/27/11, Sebastian Jaenicke
wrote:
> From: Sebastian Jaenicke
> Subject: Re: [GENERAL] error when compiling a c function
> To: "Ioana Danes"
> Cc: "PostgreSQL General"
> Received: Wednesday, July 27, 2011, 2:12 PM
&
On Wed, Jul 27, 2011 at 09:34:20AM -0700, Ioana Danes wrote:
[..]
> #include "/usr/include/pgsql/server/postgres.h"
> #include "/usr/include/pgsql/server/fmgr.h"
#include "postgres.h"
#include "fmgr.h"
> #ifdef PG_MODULE_MAGIC
#ifndef
> PG_MODULE_MAGIC;
> #endif
...and compile with -I`pg_confi