A thought about this - how about converting pgpiperead() and pgpipewrite() into functions intead of macros (on win32 - still redifining them on != win32), mimicking the behaviour of read() and write()? Then we could do awya with the #ifdefs at the points where its used, and just expect the normal Unix behaviour?
//Magnus >-----Original Message----- >From: Claudio Natoli [mailto:[EMAIL PROTECTED] >Sent: den 1 april 2004 05:06 >To: [EMAIL PROTECTED] >Subject: [PATCHES] MSFT compiler fixes + misc > > > >For application to HEAD, following community review. > >Corrects issues recently posted by Dann Corbit, allowing >libpq/psql to be >built under VC++. Moves a pgstat win32 #def to port.h > >--- >Certain disclaimers and policies apply to all email sent from >Memetrics. >For the full text of these disclaimers and policies see ><a >href="http://www.memetrics.com/emailpolicy.html">http://www.mem >etrics.com/em >ailpolicy.html</a> > > > ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend