Re: [pgsql-hackers-win32] libpq build problem with on MS VC++
От | Bruce Momjian |
---|---|
Тема | Re: [pgsql-hackers-win32] libpq build problem with |
Дата | |
Msg-id | 200408170414.i7H4EdC25136@candle.pha.pa.us обсуждение исходный текст |
Ответ на |
Re: [pgsql-hackers-win32] libpq build problem with |
Ответы |
Re: [pgsql-hackers-win32] libpq build problem with |
Список | pgsql-patches |
Tom Lane wrote: > Bruce Momjian <pgman@candle.pha.pa.us> writes: > > The only other option I can think of is to #undef those to defines, > > include io.h, then re-include port.h? Is that better? > > How about not #define'ing rename() etc in port.h in the first place? > > We could put > #ifdef WIN32 > #define rename(x) pgrename(x) > #endif > into those very few .c files that need it. (I'm assuming that > forgetting to include this in a file that calls rename() will yield an > obvious build failure on Windows --- if not then the idea is no good.) I think they have rename --- it just isn't reliable like ours is. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
В списке pgsql-patches по дате отправления: