http://bugs.winehq.org/show_bug.cgi?id=20474
--- Comment #10 from Yann Droneaud yann@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.