GNOME Bugzilla – Bug 727539
libgupnp: Include <windows.h> on Windows for GetVersionEx() function
Last modified: 2014-04-04 07:09:17 UTC
Here’s a patch from Luciana Fujii to include <windows.h> when building against Windows, so that we have access to the declaration of GetVersionEx().
Created attachment 273523 [details] [review] libgupnp: Include <windows.h> on Windows for GetVersionEx() function The <windows.h> header is needed for the declaration of GetVersionEx() and related structures.
Review of attachment 273523 [details] [review]: Weird. Worked fine on mingw last week
(In reply to comment #2) > Weird. Worked fine on mingw last week Mmm. I’m building with a recent MinGW in a Windows 7 64-bit VM, and it definitely fails without the patch (throwing the usual errors about GetVersionEx not being defined, etc.); with the patch it works fine. I don’t know much about MinGW; I guess it could be caused by your version of MinGW including that header somewhere in the header dependency tree of gupnp-context.c, or some other dependency which I don’t have including it?
Review of attachment 273523 [details] [review]: Forgot to set status
Ah, there's this weird subtle differences of mingw-w64 and mingw, maybe that's the cause. Anyway, including it shouldn't hurt.
Attachment 273523 [details] pushed as c67e2f6 - libgupnp: Include <windows.h> on Windows for GetVersionEx() function