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 17:56:24 |
Message-ID: | 29687.1161280584@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:
> I just tried a rebuild of the MSVC stuff, and got the following error.
> Any ideas on the best way to fix that?
> 1>.\src\port\qsort.c(53) : warning C4005: 'min' : macro redefinition
> C:\Program Files\Microsoft Visual Studio
This is fixed already in HEAD.
> MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _qsort already defined in
> qsort.obj
Hmm. I've been seeing related complaints on Darwin, but they were just
warnings (about our qsort conflicting with the one in libc).
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.)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-10-19 17:57:23 | Re: Adminpack build fix |
Previous Message | Magnus Hagander | 2006-10-19 17:52:06 | CVS repository rsync |