public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [setup - the official Cygwin setup program] branch master, updated. release_2.917-1-gf29127cc
@ 2022-01-24 18:25 Jon TURNEY
  0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2022-01-24 18:25 UTC (permalink / raw)
  To: cygwin-apps-cvs




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=f29127cc13873473c86d7fce70c621085628d6a2

commit f29127cc13873473c86d7fce70c621085628d6a2
Author: Jon Turney <jon.turney@dronecode.org.uk>
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)
 {



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-24 18:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-24 18:25 [setup - the official Cygwin setup program] branch master, updated. release_2.917-1-gf29127cc Jon TURNEY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).