Re: qsort vs MSVC build

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: qsort vs MSVC build
Date: 2006-10-19 18:03:45
Message-ID: 29825.1161281025@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
>> Is it worth renaming our qsort to pg_qsort to avoid this?
>> (I'd be inclined to do that via a macro "#define qsort
>> pg_qsort", not by running around and changing all the code.)

> Yeah, I think it is ;-) Just make sure it happens before we pull in
> stdlib.h, so we don't rename tha tone as well...

No, we'd want to put the macro after stdlib.h, I should think?
Specifically in port.h, where we play other similar games.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2006-10-19 18:04:33 Re: CVS repository rsync
Previous Message Neil Conway 2006-10-19 18:02:10 Re: CVS repository rsync