[gupnp] libgupnp: Include <windows.h> on Windows for GetVersionEx() function
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] libgupnp: Include <windows.h> on Windows for GetVersionEx() function
- Date: Fri, 4 Apr 2014 07:08:58 +0000 (UTC)
commit c67e2f6241b3c6555b14bad4c05c6fdaf190a40a
Author: Luciana Fujii <luciana fujii collabora com>
Date: Thu Apr 3 13:40:59 2014 +0100
libgupnp: Include <windows.h> on Windows for GetVersionEx() function
The <windows.h> header is needed for the declaration of GetVersionEx()
and related structures.
https://bugzilla.gnome.org/show_bug.cgi?id=727539
libgupnp/gupnp-context.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libgupnp/gupnp-context.c b/libgupnp/gupnp-context.c
index 7949880..07ded6d 100644
--- a/libgupnp/gupnp-context.c
+++ b/libgupnp/gupnp-context.c
@@ -41,7 +41,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <glib.h>
-#ifndef G_OS_WIN32
+#ifdef G_OS_WIN32
+#include <windows.h>
+#else
#include <sys/utsname.h>
#endif
#include <sys/types.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]