Add WIN32_LEAN_AND_MEAN to source files which inlude Windows headers
parent
a9715898b2
commit
24d10aa83e
|
|
@ -7,6 +7,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#if defined(CRYPTOPP_WIN32_AVAILABLE)
|
#if defined(CRYPTOPP_WIN32_AVAILABLE)
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#elif defined(CRYPTOPP_UNIX_AVAILABLE)
|
#elif defined(CRYPTOPP_UNIX_AVAILABLE)
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
|
||||||
8
test.cpp
8
test.cpp
|
|
@ -21,6 +21,7 @@
|
||||||
#include "whrlpool.h"
|
#include "whrlpool.h"
|
||||||
#include "tiger.h"
|
#include "tiger.h"
|
||||||
#include "smartptr.h"
|
#include "smartptr.h"
|
||||||
|
#include "ocb.h"
|
||||||
|
|
||||||
#include "validate.h"
|
#include "validate.h"
|
||||||
#include "bench.h"
|
#include "bench.h"
|
||||||
|
|
@ -33,6 +34,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -142,6 +144,12 @@ int CRYPTOPP_API main(int argc, char *argv[])
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
OCB<AES>::Encryption enc1;
|
||||||
|
OCB<AES>::Decryption dec1;
|
||||||
|
|
||||||
|
OCB3<AES>::Encryption enc2;
|
||||||
|
OCB3<AES>::Decryption dec2;
|
||||||
|
|
||||||
RegisterFactories();
|
RegisterFactories();
|
||||||
|
|
||||||
// Some editors have problems with the '\0' character when redirecting output.
|
// Some editors have problems with the '\0' character when redirecting output.
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
#include "trdlocal.h"
|
#include "trdlocal.h"
|
||||||
|
|
||||||
#ifdef HAS_WINTHREADS
|
#ifdef HAS_WINTHREADS
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue