warning: "min" redefined of qsort.
warning: "min" redefined of qsort.
Hi.
I have warning with MinGW....
qsort.c:53:1: warning: "min" redefined
In file included from C:/MinGW/include/windows.h:48,
from ../../src/include/pg_config_os.h:12,
from ../../src/include/c.h:88,
from qsort.c:46:
C:/MinGW/include/windef.h:143:1: warning: this is the location of the previous definition
qsort_arg.c:53:1: warning: "min" redefined
In file included from C:/MinGW/include/windows.h:48,
from ../../src/include/pg_config_os.h:12,
from ../../src/include/c.h:88,
from qsort_arg.c:46:
C:/MinGW/include/windef.h:143:1: warning: this is the location of the previous definition
qsort.c:53:1: warning: "min" redefined
In file included from C:/MinGW/include/windows.h:48,
from ../../src/include/pg_config_os.h:12,
from ../../src/include/c.h:88,
from qsort.c:46:
C:/MinGW/include/windef.h:143:1: warning: this is the location of the previous definition
qsort_arg.c:53:1: warning: "min" redefined
In file included from C:/MinGW/include/windows.h:48,
from ../../src/include/pg_config_os.h:12,
from ../../src/include/c.h:88,
from qsort_arg.c:46:
Therefore, please consider this.
Regards,
Hiroshi Saito
Re: warning: "min" redefined of qsort.
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Hiroshi Saito" writes: > I have warning with MinGW.... > qsort.c:53:1: warning: "min" redefined I've fixed this by using Min() from c.h instead. regards, tom lane
Re: warning: "min" redefined of qsort.
От:
"Hiroshi Saito" <z-saito@guitar.ocn.ne.jp>
Дата:
Hi Tom-san. From: "Tom Lane" > "Hiroshi Saito" writes: >> I have warning with MinGW.... >> qsort.c:53:1: warning: "min" redefined > > I've fixed this by using Min() from c.h instead. Ahh, I was consideration shortage. Thanks!! Regards, Hiroshi Saito