InvalidOid & C++

Поиск
Список
Период
Сортировка
От Jeroen T. Vermeulen
Тема InvalidOid & C++
Дата
Msg-id 20030306204852.GA43776@xs4all.nl
обсуждение исходный текст
Ответы Re: InvalidOid & C++  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: InvalidOid & C++  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
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


В списке pgsql-patches по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: spelling corrections
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: spelling corrections