diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-05-03 00:23:05 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-05-09 03:07:57 -0400 |
commit | d294b4290b997f174ade322a9638db2f1e15ed41 (patch) | |
tree | 9c8faf70d56d2be3c5fb0a7c040ca652e8c69e5a /fipstest.cpp | |
parent | 69f7802b53dfbc7ac9aacbaff02b45d6582aad3d (diff) | |
download | cryptopp-git-d294b4290b997f174ade322a9638db2f1e15ed41.tar.gz |
Add changes for Windows Sotre that went missing with my clumsy Git skills
Diffstat (limited to 'fipstest.cpp')
-rw-r--r-- | fipstest.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fipstest.cpp b/fipstest.cpp index 08d752e7..46af6dd1 100644 --- a/fipstest.cpp +++ b/fipstest.cpp @@ -1,6 +1,7 @@ // fipstest.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
+#include "config.h"
#ifndef CRYPTOPP_IMPORTS
@@ -11,8 +12,20 @@ #include "smartptr.h"
#include "misc.h"
+// Simply disable CRYPTOPP_WIN32_AVAILABLE for Windows Phone and Windows Store apps
#ifdef CRYPTOPP_WIN32_AVAILABLE
+# if defined(WINAPI_FAMILY) && defined(WINAPI_FAMILY_PARTITION)
+# if !(WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
+# undef CRYPTOPP_WIN32_AVAILABLE
+# endif
+# endif
+#endif
+
+#ifdef CRYPTOPP_WIN32_AVAILABLE
+#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
+#endif
+
#include <windows.h>
#if defined(_MSC_VER) && _MSC_VER >= 1400
|