[libGD] #83 [Task opened] re-defines within gdft.c when compiled with MingW32

[email protected] (libGD) Wed, 09 May 2007 15:44:26 +0000
Newsgroups php.gd.bugs
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below.

User who did this - Guenter (oldman)

Attached to Project - libGD
Summary - re-defines within gdft.c when compiled with MingW32
Task Type - Bug Report
Category - Configure/Build
Status - Unconfirmed
Assigned To - 
Operating System - Windows
Severity - Medium
Priority - Normal
Reported Version - 2.0.34
Due in Version - Undecided
Due Date - Undecided
Details - Hi,
when compiling with MingW32 I get some re-defines in gdft.c:
../gdft.c:25:1: warning: "R_OK" redefined
In file included from ../gdft.c:24:
c:/prg/mingw32/include/io.h:171:1: warning: this is the location of the previous definition
../gdft.c:29:1: warning: "NUMCOLORS" redefined
In file included from c:/prg/mingw32/include/windows.h:52,
                 from ../gdhelpers.h:34,
                 from ../gdft.c:17:
c:/prg/mingw32/include/wingdi.h:628:1: warning: this is the location of the previous definition

therefore I would like to propose renaming NUMCOLORS to GD_NUMCOLORS, and block definition of R_OK for MingW32.
See attached diff.


More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=83

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.