On Monday, November 6, 2017 at 1:36:36 PM UTC-5, Marcel Raad wrote:
>
> Hi Jeff,
>
> Am 06.11.2017 19:29 schrieb "Jeffrey Walton" <noloa...@gmail.com>:
>
> Should we remove that header or comment it out? I don't know anyone
> developing on Windows 2000 anymore. Windows XP and Windows 2003 are
> the floors for the development shops I work with.
>
>
> unfortunately that wouldn't help either as then the needed functions would 
> not be available. MinGW should really set their default Windows version to 
> something more current. As nothing needing later Windows versions is used 
> at all in Crypto++, I wouldn't actively remove it.
>

Ack, thanks.

How does this fancy you:

$ git diff
diff --git a/socketft.cpp b/socketft.cpp
index 454eaa5..20cda22 100644
--- a/socketft.cpp
+++ b/socketft.cpp
@@ -30,6 +30,14 @@
 # include <sanitizer/msan_interface.h>
 #endif

+// From 
http://groups.google.com/d/msg/cryptopp-users/MzvocLrbIpE/TMCa6LFhCgAJ,
+// <wspiapi.h> is a compatibility header and it needs _WIN32_WINNT >= 
0x501.
+// The work-around should be OK since it won't cross-pollinate into header 
files.
+#if defined(__MINGW32__) && (_WIN32_WINNT < 0x501)
+# undef _WIN32_WINNT
+# define _WIN32_WINNT 0x501
+#endif

I think we need to put up a wiki page on this: 
https://www.cryptopp.com/wiki/MinGW_(Command_Line). Folks should not be 
having this much trouble. In the absence of "it just works" we should 
provide a canonical source of solutions.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to