From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id 530853858D3C; Mon, 24 Jan 2022 18:25:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 530853858D3C To: cygwin-apps-cvs@sourceware.org Subject: [setup - the official Cygwin setup program] branch master, updated. release_2.917-1-gf29127cc X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 6c940f562bece60e42aebe652d49c4023dfbd3cf X-Git-Newrev: f29127cc13873473c86d7fce70c621085628d6a2 Message-Id: <20220124182542.530853858D3C@sourceware.org> Date: Mon, 24 Jan 2022 18:25:42 +0000 (GMT) From: Jon TURNEY X-BeenThere: cygwin-apps-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin-apps git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2022 18:25:42 -0000 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=f29127cc13873473c86d7fce70c621085628d6a2 commit f29127cc13873473c86d7fce70c621085628d6a2 Author: Jon Turney Date: Mon Jan 24 18:13:51 2022 +0000 Provide prototype for SHMessageBoxCheckW() Present in implib, but not prototyped in MinGW64 headers until 9.0.0 Diff: --- msg.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/msg.cc b/msg.cc index 39d87ebe..bcb32660 100644 --- a/msg.cc +++ b/msg.cc @@ -29,6 +29,11 @@ #include "String++.h" #include "resource.h" +// no prototype in shlwapi.h until MinGW64 headers 9.0.0 +#if __MINGW64_VERSION_MAJOR < 9 +extern "C" int WINAPI SHMessageBoxCheckW(HWND hwnd, LPCWSTR pszText, LPCWSTR pszCaption, UINT uType, int iDefault, LPCWSTR pszRegVal); +#endif + static int unattended_result(int mb_type) {