Обсуждение: warning: "min" redefined of qsort.

Поиск
Список
Период
Сортировка

warning: "min" redefined of qsort.

От
"Hiroshi Saito"
Дата:
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
Дата:
"Hiroshi Saito" <z-saito@guitar.ocn.ne.jp> 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"
Дата:
Hi Tom-san.

From: "Tom Lane"


> "Hiroshi Saito" <z-saito@guitar.ocn.ne.jp> 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