[setup - the official Cygwin setup program] branch master, updated. release_2.917-1-gf29127cc
Jon TURNEY via Cygwin-apps-cvs <[email protected]>
| Newsgroups | gmane.os.cygwin.cvs.apps |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=f29127cc13873473c86d7fce70c621085628d6a2 commit f29127cc13873473c86d7fce70c621085628d6a2 Author: Jon Turney <[email protected]> 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) {