[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/6] qga/commands-win32.c: Drop the check for _WIN32_WINNT >= 0x06
|
From: |
Konstantin Kostiuk |
|
Subject: |
[PULL 5/6] qga/commands-win32.c: Drop the check for _WIN32_WINNT >= 0x0601 |
|
Date: |
Thu, 4 May 2023 12:56:56 +0300 |
From: Thomas Huth <thuth@redhat.com>
All current versions of glib require _WIN32_WINNT set to 0x0601
or higher already, and we also use this value as a minimum in our
osdep.h header file, so there is no way to still compile this code
with an older version of the Windows ABI. Thus we can drop this
check now.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
qga/commands-win32.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/qga/commands-win32.c b/qga/commands-win32.c
index b5fee6a2cd..d23875264f 100644
--- a/qga/commands-win32.c
+++ b/qga/commands-win32.c
@@ -484,7 +484,6 @@ static GuestDiskBusType win2qemu[] = {
[BusTypeSata] = GUEST_DISK_BUS_TYPE_SATA,
[BusTypeSd] = GUEST_DISK_BUS_TYPE_SD,
[BusTypeMmc] = GUEST_DISK_BUS_TYPE_MMC,
-#if (_WIN32_WINNT >= 0x0601)
[BusTypeVirtual] = GUEST_DISK_BUS_TYPE_VIRTUAL,
[BusTypeFileBackedVirtual] = GUEST_DISK_BUS_TYPE_FILE_BACKED_VIRTUAL,
/*
@@ -492,7 +491,6 @@ static GuestDiskBusType win2qemu[] = {
*/
[BusTypeSpaces] = GUEST_DISK_BUS_TYPE_UNKNOWN,
[BusTypeNvme] = GUEST_DISK_BUS_TYPE_NVME,
-#endif
};
static GuestDiskBusType find_bus_type(STORAGE_BUS_TYPE bus)
--
2.25.1
- [PULL 0/6] Misc QGA patches, Konstantin Kostiuk, 2023/05/04
- [PULL 1/6] qga/linux: add usb support to guest-get-fsinfo, Konstantin Kostiuk, 2023/05/04
- [PULL 3/6] qga: Add `merged` variant to GuestExecCaptureOutputMode, Konstantin Kostiuk, 2023/05/04
- [PULL 2/6] qga: Refactor guest-exec capture-output to take enum, Konstantin Kostiuk, 2023/05/04
- [PULL 4/6] qga: test: Add tests for `merged` flag, Konstantin Kostiuk, 2023/05/04
- [PULL 5/6] qga/commands-win32.c: Drop the check for _WIN32_WINNT >= 0x0601,
Konstantin Kostiuk <=
- [PULL 6/6] qga: Fix suspend on Linux guests without systemd, Konstantin Kostiuk, 2023/05/04
- Re: [PULL 0/6] Misc QGA patches, Richard Henderson, 2023/05/04
- Re: [PULL 0/6] Misc QGA patches, Richard Henderson, 2023/05/05