Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1) - Mailing list pgsql-bugs

From ir. F.T.M. van Vugt bc.
Subject Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)
Date
Msg-id 200210162304.32295.ftm.van.vugt@foxi.nl
Whole thread Raw
In response to Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
> > May I ask why you don't want to go with something like:
> > #define DESCR(x) typedef int postgresql_foo_bar
>
> Because it doesn't work.
> $ cat z.c
> typedef int postgresql_foo_bar;
> typedef int postgresql_foo_bar;
> $ gcc -c z.c
> z.c:2: redefinition of `postgresql_foo_bar'
> z.c:1: `postgresql_foo_bar' previously declared here

Ah, you got me there, Tom.

Guess I had to know better than to mess with you C-guys unless I'd better m=
ake=20
sure I'd double-checked ;-))


Anyway, thanx again and guys are doing a great job !!



Frank.

pgsql-bugs by date:

Previous
From: Cristóvão Dalla Costa
Date:
Subject: bug in create table with serial
Next
From: Tom Lane
Date:
Subject: Re: bug in create table with serial