http://bugs.winehq.org/show_bug.cgi?id=35711
Bug ID: 35711 Summary: Winelib: compile error in wincon.h if NOGDI is defined before #include <windows.h> Product: Wine Version: 1.4.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: matteo@mitalia.net
As described in the summary; if I try to compile the following file
#define NOGDI #include <windows.h>
int main() { return 0; }
with winegcc (wine-dev package 1.4.1 from Ubuntu 13.10) I get
In file included from /usr/include/wine/windows/windows.h:42:0, from test.c:2: /usr/include/wine/windows/wincon.h:337:62: error: unknown type name ‘LPCONSOLE_FONT_INFOEX’ WINBASEAPI BOOL WINAPI GetCurrentConsoleFontEx(HANDLE,BOOL,LPCONSOLE_FONT_INFOEX); ^ /usr/include/wine/windows/wincon.h:375:62: error: unknown type name ‘LPCONSOLE_FONT_INFOEX’ WINBASEAPI BOOL WINAPI SetCurrentConsoleFontEx(HANDLE,BOOL,LPCONSOLE_FONT_INFOEX); ^ winegcc: gcc failed
This comes from the fact that the typedef LPCONSOLE_FONT_INFOEX (and related types) is #ifdef-ed out when NOGDI is defined, but SetCurrentConsoleFontEx (which depends from this type) is always included.
The bug makes compiling anything that uses the NOGDI option impossible.
http://bugs.winehq.org/show_bug.cgi?id=35711
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|kernel32 |-unknown Ever confirmed|0 |1
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Confirming, GetCurrentConsoleFontEx/SetCurrentConsoleFontEx are excluded in PSDK headers if NOGDI is defined.
http://bugs.winehq.org/show_bug.cgi?id=35711
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
https://bugs.winehq.org/show_bug.cgi?id=35711
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #2 from super_man@post.com --- still valid 1.7.51
https://bugs.winehq.org/show_bug.cgi?id=35711
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com Component|-unknown |build-env
--- Comment #3 from Austin English austinenglish@gmail.com --- https://source.winehq.org/patches/data/120458
https://bugs.winehq.org/show_bug.cgi?id=35711
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |96ab323cf94db458343553f180d | |d8cbb8440e3cf Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #4 from Austin English austinenglish@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/96ab323cf94db458343553f180...
https://bugs.winehq.org/show_bug.cgi?id=35711
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.7.
https://bugs.winehq.org/show_bug.cgi?id=35711
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@redhat.com Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=35711
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #6 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.3.