From patchwork Fri Aug 19 18:39:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 227 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.134 with SMTP id o128csp525456vsd; Fri, 19 Aug 2016 11:40:56 -0700 (PDT) X-Received: by 10.28.94.85 with SMTP id s82mr5021643wmb.24.1471632056607; Fri, 19 Aug 2016 11:40:56 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id em5si7412508wjb.257.2016.08.19.11.40.55; Fri, 19 Aug 2016 11:40:56 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A197B689BA5; Fri, 19 Aug 2016 21:40:50 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-oi0-f68.google.com (mail-oi0-f68.google.com [209.85.218.68]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 96255689BA5 for ; Fri, 19 Aug 2016 21:40:42 +0300 (EEST) Received: by mail-oi0-f68.google.com with SMTP id s207so6831090oie.0 for ; Fri, 19 Aug 2016 11:40:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=mrV6T7WL/NHm5J/oQ/uNLCebPO8v0ax2VleAJCGI9b0=; b=OIF5wDciWIvEiYWRo0Z2/23EOAgUPMcVCY9U/NP250y+kiq4MzpjK3nTceg+3MJjEx I1GGJaj4exXKVNkSV6fNaA4pkZ63H502I1MLhuS8lgKrjBEPhFjWfDd8oG4OFv6qpXKV Bbe+25ojC0/i5Te+rMtygYhX4/Z3t22B7TYh97xaKt5jAJM6D2C5WhxQOhL3RjdWPShX FYT6ny9DBFOIUdrlaAA0mCylqbdsUYWgx8+Z/QyO54jqN2MD7jsTVMdffWF0wHCRPzUd PMw/QndLMrv5ihgB9PxgWTUKJpKDIVcpp/2KCINQHFwo7HvRo66xYF0zs0X6BIsWjcwp 2veA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=mrV6T7WL/NHm5J/oQ/uNLCebPO8v0ax2VleAJCGI9b0=; b=hiaKgON8bDD1kMfsWpeQ1AXYcxKwq07RGT2Fh7BO3mi2LHoAmX4FhZgCyAtr335Lhd DcLzvly7hAF3a/wgFfHJQRugAyuXrv0CbKv5PPEpUfJfQQKy6RzVbln9FWPGe01PC1yA 48sUtiZPjGVoQfCDDPeaucBQ0/Y8r9XODXd8mL3PQFxsoVjRhTJ3htpDz4NrVn8m15+h MjIwtmxhNfSXAFjbEFkRhHWrUmzQ49CRELdvItJIXVglauK+kIKPxAcpz2ibvd/YnCXD ekX1oG+Vaz0jIF8znJ4RTD4hsF0Y12yRc1quGLE/qVb+53wPivPY0Hv5h97qgcy+DZUj HL1Q== X-Gm-Message-State: AEkoousgCMs85p2HvFt9rqzTJDFATgun68v1br+AFwlDh/BSI8REwweZTeoay5S5Uahjqg== X-Received: by 10.157.34.135 with SMTP id y7mr6132991ota.111.1471632041575; Fri, 19 Aug 2016 11:40:41 -0700 (PDT) Received: from localhost.localdomain ([181.22.28.147]) by smtp.gmail.com with ESMTPSA id f41sm4391894otc.30.2016.08.19.11.40.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Aug 2016 11:40:41 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Fri, 19 Aug 2016 15:39:58 -0300 Message-Id: <20160819183958.3312-1-jamrial@gmail.com> X-Mailer: git-send-email 2.9.1 In-Reply-To: References: Subject: [FFmpeg-devel] [PATCH] configure: force _WIN32_WINNT >= 0x0502 on mingw32 targets X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Windows versions earlier than XP are not supported. Should fix compilation of command line tools. Signed-off-by: James Almer Tested-by: michael --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 9b92426..2a2c06e 100755 --- a/configure +++ b/configure @@ -4919,6 +4919,8 @@ probe_libc(){ (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" || die "ERROR: MinGW32 runtime version must be >= 3.15." add_${pfx}cppflags -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1 + check_${pfx}cpp_condition _mingw.h "defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0502" || + add_${pfx}cppflags -D_WIN32_WINNT=0x0502 eval test \$${pfx_no_}cc_type = "gcc" && add_${pfx}cppflags -D__printf__=__gnu_printf__ elif check_${pfx}cpp_condition crtversion.h "defined _VC_CRT_MAJOR_VERSION"; then