From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: InvalidOid & C++ |
Date: | 2003-03-18 17:21:19 |
Message-ID: | 200303181721.h2IHLJ605842@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Patch applied. Thanks.
---------------------------------------------------------------------------
Jeroen T. Vermeulen wrote:
> Compiling anything that uses InvalidOid under g++ yields a warning about
> the expression using an "old-style cast." Therefore, would it be okay to
> patch postgres_ext.h as follows:
>
>
> *** src/include/postgres_ext.h 2003-02-22 16:24:28.000000000 +0100
> --- ../postgres_ext.h 2003-03-06 21:44:11.000000000 +0100
> ***************
> *** 28,34 ****
> --- 28,38 ----
> */
> typedef unsigned int Oid;
>
> + #ifdef __cplusplus
> + #define InvalidOid (Oid(0))
> + #else
> #define InvalidOid ((Oid) 0)
> + #endif
>
> #define OID_MAX UINT_MAX
> /* you will need to include <limits.h> to use the above #define */
>
>
> Jeroen
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-03-18 17:23:00 | Re: pg_autovacuum (pg_avd version 2) |
Previous Message | Jeroen T. Vermeulen | 2003-03-18 17:00:19 | Re: InvalidOid & C++ |