From nobody Fri Nov 7 00:45:01 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1544628708302486.14934870809657; Wed, 12 Dec 2018 07:31:48 -0800 (PST) Received: from localhost ([::1]:45601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX6UA-0007Ci-Ju for importer@patchew.org; Wed, 12 Dec 2018 10:31:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX6MX-0000mB-Cz for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX6MW-0000D1-AT for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:49 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:41230) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX6MU-000088-Br for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:46 -0500 Received: by mail-wr1-x431.google.com with SMTP id x10so18066587wrs.8 for ; Wed, 12 Dec 2018 07:23:41 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id u10sm15878859wrr.33.2018.12.12.07.23.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Dec 2018 07:23:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=C3Q43PeX3iGo68GzRfJThyjsf5BqaavXdB4G44tB9Ng=; b=Z/rw5dZC2Cv6gPuezQx1t+ejwFOUnAFIjS9fUerWdJ11wgA5t+aTPZcmj/K5tmq2Gy JtJaG4++ghbJGjcKLPcpzi+0DZT++UTael4LNotI/5WAGtKiJtlFb7vSoVs2Jp3khN+6 +yvMff++WMxRLiBZbdDnnJLotzuxTQMKUW+S1l3VGfeoLJZ2efjQbUr6PobI9auHS8JA lYlXbnFSvcvrxYXcNIioe78ZXYGgfJRwBrCj344LEdKD2g1KWR8/eSyLry8VBwC59a65 Q3GJVHSTt4lx/yL8L7QaG1rKacJ7e9/xazRZJaSZSE3Ncgj1HE/QxBURl/ZQWGJSSsqm CmFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=C3Q43PeX3iGo68GzRfJThyjsf5BqaavXdB4G44tB9Ng=; b=aoYZvcUK0Pnq1+zhcVkHCHM3JBLu0dV73DCS41WYclza+V5dVGKxs+Zhw97lMeVqBh vs5mwVIwoOB1+PrsLXfQ6fVbQqeCFnkmmGHdlqkuAKqG2A+2Ilf5SCrAWAoxs7R2mOxs 6YSBGzJ/v4d75Yhpmkz0toZOwsGSlRfR5HiMr1DVMng+1dU3C1KC3BD6UaWibxNY8Xz1 +UQdHQyYwkPM+ZKfJ1lu8JFE6pvf0KkPZL+5474LwMonzDd//kJBBJZ37t9qujcUzmIP xhABCveJYe7QAJg3HL9OHNmJ8DvTMSlKFLg5zBzhghLGPvWg+tEDJpj2qrxTc6oce8AH TIWg== X-Gm-Message-State: AA+aEWa+U+UvmpP13OtEcTgdCA2mqk0bh7LYuL0+cc5p0r/P4dHgze/a IUmb4ac5FmzA3CM/ilpL8o5JZ7Yy X-Google-Smtp-Source: AFSGD/U70iNk7S30GWSe0nfnhzh8XYdN5Sdso9jjeRHXcct2MYsaH3NhUVHyWarTK7qNkTAz7I8kzA== X-Received: by 2002:adf:a78a:: with SMTP id j10mr18076970wrc.191.1544628220579; Wed, 12 Dec 2018 07:23:40 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 12 Dec 2018 16:22:41 +0100 Message-Id: <1544628195-37728-21-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1544628195-37728-1-git-send-email-pbonzini@redhat.com> References: <1544628195-37728-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::431 Subject: [Qemu-devel] [PULL 20/54] build-sys: build with Vista API by default X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Marc-Andr=C3=A9 Lureau Both qemu & qga build with Vista API by default already, by defining _WIN32_WINNT 0x0600. Set it globally in osdep.h instead. This replaces WINVER by _WIN32_WINNT in osdep.h. WINVER doesn't seem to be really useful these days. (see also https://blogs.msdn.microsoft.com/oldnewthing/20070411-00/?p=3D272= 83) Signed-off-by: Marc-Andr=C3=A9 Lureau Message-Id: <20181122110039.15972-4-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini --- include/qemu/osdep.h | 4 ++-- qga/commands-win32.c | 6 +----- util/qemu-thread-win32.c | 4 ---- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 7b6e5db..80df725 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -76,8 +76,8 @@ extern int daemon(int, int); =20 #ifdef _WIN32 /* as defined in sdkddkver.h */ -#ifndef WINVER -#define WINVER 0x0501 /* XP */ +#ifndef _WIN32_WINNT +#define _WIN32_WINNT 0x0600 /* Vista */ #endif /* reduces the number of implicitly included headers */ #ifndef WIN32_LEAN_AND_MEAN diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 62e1b51..f03b9c1 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -10,12 +10,8 @@ * This work is licensed under the terms of the GNU GPL, version 2 or late= r. * See the COPYING file in the top-level directory. */ - -#ifndef _WIN32_WINNT -# define _WIN32_WINNT 0x0600 -#endif - #include "qemu/osdep.h" + #include #include #include diff --git a/util/qemu-thread-win32.c b/util/qemu-thread-win32.c index 4a363ca..572f885 100644 --- a/util/qemu-thread-win32.c +++ b/util/qemu-thread-win32.c @@ -11,10 +11,6 @@ * */ =20 -#ifndef _WIN32_WINNT -#define _WIN32_WINNT 0x0600 -#endif - #include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/thread.h" --=20 1.8.3.1