qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] include/qemu/osdep.h: Bump _WIN32_WINNT to the Windows 8 API
@ 2023-05-04  8:13 Thomas Huth
  2023-05-04  8:21 ` Daniel P. Berrangé
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas Huth @ 2023-05-04  8:13 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Daniel P . Berrangé, Akihiko Odaki,
	Paolo Bonzini, Yonggang Luo, Stefan Weil

Commit cf60ccc330 ("cutils: Introduce bundle mechanism") abandoned
compatibility with Windows older than 8 - we should reflect this
in our _WIN32_WINNT and set it to the value that corresponds to
Windows 8.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 include/qemu/osdep.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index 9eff0be95b..cc61b00ba9 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -75,7 +75,7 @@ QEMU_EXTERN_C int daemon(int, int);
 #ifdef _WIN32
 /* as defined in sdkddkver.h */
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0601 /* Windows 7 API (should be in sync with glib) */
+#define _WIN32_WINNT 0x0602 /* Windows 8 API (should be >= the one from glib) */
 #endif
 /* reduces the number of implicitly included headers */
 #ifndef WIN32_LEAN_AND_MEAN
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] include/qemu/osdep.h: Bump _WIN32_WINNT to the Windows 8 API
  2023-05-04  8:13 [PATCH] include/qemu/osdep.h: Bump _WIN32_WINNT to the Windows 8 API Thomas Huth
@ 2023-05-04  8:21 ` Daniel P. Berrangé
  2023-05-04 15:13 ` Akihiko Odaki
  2023-05-05  8:22 ` Paolo Bonzini
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel P. Berrangé @ 2023-05-04  8:21 UTC (permalink / raw)
  To: Thomas Huth
  Cc: qemu-devel, qemu-trivial, Akihiko Odaki, Paolo Bonzini,
	Yonggang Luo, Stefan Weil

On Thu, May 04, 2023 at 10:13:51AM +0200, Thomas Huth wrote:
> Commit cf60ccc330 ("cutils: Introduce bundle mechanism") abandoned
> compatibility with Windows older than 8 - we should reflect this
> in our _WIN32_WINNT and set it to the value that corresponds to
> Windows 8.

Reference for this  claim:

  https://learn.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=msvc-170

[quote]
#define _WIN32_WINNT_WIN8                   0x0602 // Windows 8
[/quote]

> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  include/qemu/osdep.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

> 
> diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
> index 9eff0be95b..cc61b00ba9 100644
> --- a/include/qemu/osdep.h
> +++ b/include/qemu/osdep.h
> @@ -75,7 +75,7 @@ QEMU_EXTERN_C int daemon(int, int);
>  #ifdef _WIN32
>  /* as defined in sdkddkver.h */
>  #ifndef _WIN32_WINNT
> -#define _WIN32_WINNT 0x0601 /* Windows 7 API (should be in sync with glib) */
> +#define _WIN32_WINNT 0x0602 /* Windows 8 API (should be >= the one from glib) */
>  #endif
>  /* reduces the number of implicitly included headers */
>  #ifndef WIN32_LEAN_AND_MEAN
> -- 
> 2.31.1
> 

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] include/qemu/osdep.h: Bump _WIN32_WINNT to the Windows 8 API
  2023-05-04  8:13 [PATCH] include/qemu/osdep.h: Bump _WIN32_WINNT to the Windows 8 API Thomas Huth
  2023-05-04  8:21 ` Daniel P. Berrangé
@ 2023-05-04 15:13 ` Akihiko Odaki
  2023-05-05  8:22 ` Paolo Bonzini
  2 siblings, 0 replies; 4+ messages in thread
From: Akihiko Odaki @ 2023-05-04 15:13 UTC (permalink / raw)
  To: Thomas Huth, qemu-devel
  Cc: qemu-trivial, Daniel P . Berrangé, Paolo Bonzini,
	Yonggang Luo, Stefan Weil

On 2023/05/04 17:13, Thomas Huth wrote:
> Commit cf60ccc330 ("cutils: Introduce bundle mechanism") abandoned
> compatibility with Windows older than 8 - we should reflect this
> in our _WIN32_WINNT and set it to the value that corresponds to
> Windows 8.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] include/qemu/osdep.h: Bump _WIN32_WINNT to the Windows 8 API
  2023-05-04  8:13 [PATCH] include/qemu/osdep.h: Bump _WIN32_WINNT to the Windows 8 API Thomas Huth
  2023-05-04  8:21 ` Daniel P. Berrangé
  2023-05-04 15:13 ` Akihiko Odaki
@ 2023-05-05  8:22 ` Paolo Bonzini
  2 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2023-05-05  8:22 UTC (permalink / raw)
  To: Thomas Huth, qemu-devel
  Cc: qemu-trivial, Daniel P . Berrangé, Akihiko Odaki,
	Yonggang Luo, Stefan Weil

On 5/4/23 10:13, Thomas Huth wrote:
> Commit cf60ccc330 ("cutils: Introduce bundle mechanism") abandoned
> compatibility with Windows older than 8 - we should reflect this
> in our _WIN32_WINNT and set it to the value that corresponds to
> Windows 8.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>   include/qemu/osdep.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
> index 9eff0be95b..cc61b00ba9 100644
> --- a/include/qemu/osdep.h
> +++ b/include/qemu/osdep.h
> @@ -75,7 +75,7 @@ QEMU_EXTERN_C int daemon(int, int);
>   #ifdef _WIN32
>   /* as defined in sdkddkver.h */
>   #ifndef _WIN32_WINNT
> -#define _WIN32_WINNT 0x0601 /* Windows 7 API (should be in sync with glib) */
> +#define _WIN32_WINNT 0x0602 /* Windows 8 API (should be >= the one from glib) */
>   #endif
>   /* reduces the number of implicitly included headers */
>   #ifndef WIN32_LEAN_AND_MEAN

Queued, thanks.

Paolo



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-05  8:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-04  8:13 [PATCH] include/qemu/osdep.h: Bump _WIN32_WINNT to the Windows 8 API Thomas Huth
2023-05-04  8:21 ` Daniel P. Berrangé
2023-05-04 15:13 ` Akihiko Odaki
2023-05-05  8:22 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).