diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-08-27 14:44:27 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-08-27 14:44:27 -0400 |
commit | 033f204a869972d26b0c2e32b732d8e2834dbfaf (patch) | |
tree | d6360d3bbac24f76553fff8e683d9c50ed4e2749 /osrng.cpp | |
parent | b067d16e8886109df5a6abdd153c3dfd8eebbf7e (diff) | |
download | cryptopp-git-033f204a869972d26b0c2e32b732d8e2834dbfaf.tar.gz |
Fix .Net 2002 compile
This testing occurs on Windows XP. We are still rockin it
Diffstat (limited to 'osrng.cpp')
-rw-r--r-- | osrng.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -24,6 +24,9 @@ #ifdef CRYPTOPP_WIN32_AVAILABLE
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#ifndef ERROR_INCORRECT_SIZE
+# define ERROR_INCORRECT_SIZE 0x000005B6
+#endif
#if defined(USE_MS_CRYPTOAPI)
#include <wincrypt.h>
#ifndef CRYPT_NEWKEYSET
@@ -44,7 +47,7 @@ # define STATUS_INVALID_HANDLE 0xC0000008
#endif
#endif
-#endif
+#endif // Win32
#ifdef CRYPTOPP_UNIX_AVAILABLE
#include <errno.h>
|