| 1 |
diff --git a/config_cxx.h b/config_cxx.h |
| 2 |
index ffd57ad..353d7ce 100644 |
| 3 |
--- a/config_cxx.h |
| 4 |
+++ b/config_cxx.h |
| 5 |
@@ -217,7 +217,7 @@ |
| 6 |
// Also see https://github.com/weidai11/cryptopp/issues/980. I'm not sure what |
| 7 |
// to do when the compiler defines __cpp_lib_uncaught_exceptions but the platform |
| 8 |
// does not support std::uncaught_exceptions. What was Apple thinking??? |
| 9 |
-#if defined(__clang__) |
| 10 |
+#if defined(__clang__) && !defined(CRYPTOPP_MSC_VERSION) |
| 11 |
# if __EXCEPTIONS && __has_feature(cxx_exceptions) |
| 12 |
# if __cpp_lib_uncaught_exceptions >= 201411L |
| 13 |
# define CRYPTOPP_CXX17_UNCAUGHT_EXCEPTIONS 1 |
| 14 |
diff --git a/config_os.h b/config_os.h |
| 15 |
index 0994563..4546585 100644 |
| 16 |
--- a/config_os.h |
| 17 |
+++ b/config_os.h |
| 18 |
@@ -29,7 +29,7 @@ |
| 19 |
// https://www.cryptopp.com/wiki/Release_Process#Self_Tests |
| 20 |
// The problems with Clang pretending to be other compilers is |
| 21 |
// discussed at http://github.com/weidai11/cryptopp/issues/147. |
| 22 |
-#if (defined(_MSC_VER) && defined(__clang__)) |
| 23 |
+#if (defined(_MSC_VER) && _MSC_VER < 1930 && defined(__clang__)) |
| 24 |
# error: "Unsupported configuration" |
| 25 |
#endif |
| 26 |
|
| 27 |
@@ -126,6 +126,7 @@ |
| 28 |
#endif |
| 29 |
|
| 30 |
#ifdef CRYPTOPP_WIN32_AVAILABLE |
| 31 |
+#include <winapifamily.h> |
| 32 |
# if !defined(WINAPI_FAMILY) |
| 33 |
# define THREAD_TIMER_AVAILABLE |
| 34 |
# elif defined(WINAPI_FAMILY) |