From 47435f7d7203229cff6742a9ba46cad36def07c9 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 4 Feb 2019 07:18:51 -0500 Subject: [PATCH] Guard use of for Microsoft compilers (GH #781) --- stdcpp.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stdcpp.h b/stdcpp.h index a13fd25b..41dda240 100644 --- a/stdcpp.h +++ b/stdcpp.h @@ -60,11 +60,18 @@ namespace std { #endif #include -#include #include #include #include +// It is 2019 and VS2017/Win10 still can't compile a +// program that includes without making users +// do something special. "Epic fail" comes to mind. +// Also see https://github.com/weidai11/cryptopp/issues/781 +#ifndef _MSC_VER +# include +#endif + // uintptr_t and ptrdiff_t #if defined(__SUNPRO_CC) # if (__SUNPRO_CC >= 0x5100)