summaryrefslogtreecommitdiff
path: root/osrng.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-08-27 14:44:27 -0400
committerJeffrey Walton <noloader@gmail.com>2019-08-27 14:44:27 -0400
commit033f204a869972d26b0c2e32b732d8e2834dbfaf (patch)
treed6360d3bbac24f76553fff8e683d9c50ed4e2749 /osrng.cpp
parentb067d16e8886109df5a6abdd153c3dfd8eebbf7e (diff)
downloadcryptopp-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.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/osrng.cpp b/osrng.cpp
index 50821471..a8b13329 100644
--- a/osrng.cpp
+++ b/osrng.cpp
@@ -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>