Re: [HACKERS] Patch for VS.Net 2005's strxfrm() bug

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org, William ZHANG <uniware(at)zedware(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] Patch for VS.Net 2005's strxfrm() bug
Date: 2006-07-26 17:14:58
Message-ID: 200607261714.k6QHEwk27829@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Hiroshi Saito wrote:
> From: "Andrew Dunstan"
>
> > Hiroshi Saito wrote:
> > > Hmm, It seems to be the bug of very unpleasant Microsoft.:D
> > > I think that the following is desirable as an evasion measure to add.
> > >
> > > #if defined(_MSC_VER) && _MSC_VER == 1400
> > >
> > > To be sure, it was only VS2005.
> > >
> >
> >
> > Why is this better than:
> >
> > #if _MSC_VER == 1400
> >
> >
> > Surely this will not be true if _MSC_VER is undefined?
>
> I experienced injustice and the reason of in OSX for it.

What was the problem with OSX? Did it throw a warning of you did an
equality test on an undefined symbol?

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-07-26 17:15:45 Re: [HACKERS] Patch for VS.Net 2005's strxfrm() bug
Previous Message Greg Stark 2006-07-26 16:47:57 Re: [HACKERS] Resurrecting per-page cleaner for btree

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-07-26 17:15:45 Re: [HACKERS] Patch for VS.Net 2005's strxfrm() bug
Previous Message Greg Stark 2006-07-26 16:47:57 Re: [HACKERS] Resurrecting per-page cleaner for btree