[Bug 20474] Wine can't be built with GCC in C99 mode

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Oct 27 05:47:45 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=20474





--- Comment #10 from Yann Droneaud <yann at droneaud.fr>  2009-10-27 05:47:45 ---
Created an attachment (id=24387)
 --> (http://bugs.winehq.org/attachment.cgi?id=24387)
Ugly patch to allow some parts of wine to be built in GCC C99 mode

Here's an ugly patch to allow wine to be partially built with gcc in C99 mode
The main trick is to use LDFLAGS=-Wl,--allow-multiple-definition to workaround 
extern inline problem, until a proper fix is proposed.
Usage of typeof() is a real pain to fix as it is used to declare function
pointer
used to load dynamic libraries.
Nameless union is disable (hardcoded)
More and more #include "config.h" have to be added in order to fully compile
wine.

-Wl,--allow-multiple-definition is used in winegcc/winebuild (yes, this patch
is really ugly).

With this patch, compilation stops in dlls/imm32.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list