wrc: remove redeclaration of optarg and optind
carlo.bramix at libero.it
carlo.bramix at libero.it
Tue Aug 11 03:43:28 CDT 2015
When compiling with CYGWIN, the compiler complains that 'optarg' and 'optind'
are redeclared without dllimport in WMC and WRC tools.
In my opinion, it would be better to remove those redeclarations because
actually "wine/port.h" already replaces their absence.
I tried to compile without those redeclaration on:
Ubuntu 12.04: no problems.
CYGWIN: no more complains about dllimport redeclaration.
MINGW: it provides an implementation of getopt functions, but they are bugged
to me so I deleted getopt.h from the main includes for forcing the usage of the
getopt functions provided directly by libwine. Also in this case, no problems
found, even with a system without any builtin support of getopt.
Attached patches delete those redeclarations of 'optarg' and 'optind'.
Sincerely,
Carlo Bramini.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wrc.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150811/2eb55c94/attachment.txt>
More information about the wine-patches
mailing list