Thread: warning: "min" redefined of qsort.

warning: "min" redefined of qsort.

From
"Hiroshi Saito"
Date:
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

Attachment

Re: warning: "min" redefined of qsort.

From
Tom Lane
Date:
"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.

From
"Hiroshi Saito"
Date:
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