Re: qsort vs MSVC build - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: qsort vs MSVC build
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA0FC95@algol.sollentuna.se
Whole thread Raw
In response to Re: qsort vs MSVC build  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> >> 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.

Uh, that's what I meant, I just wrote it backwards. Sorry.

//Magnus


pgsql-hackers by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: CVS repository rsync
Next
From: Neil Conway
Date:
Subject: Re: qsort vs MSVC build