summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fipstest.cpp11
-rw-r--r--hrtimer.cpp2
-rw-r--r--stdcpp.h1
3 files changed, 7 insertions, 7 deletions
diff --git a/fipstest.cpp b/fipstest.cpp
index 0daaf6d6..38f55714 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 "misc.h"
#ifndef CRYPTOPP_IMPORTS
@@ -9,6 +10,7 @@
#include "dll.h"
#ifdef CRYPTOPP_WIN32_AVAILABLE
+#define WIN32_LEAN_AND_MEAN
#define _WIN32_WINNT 0x0400
#include <windows.h>
@@ -22,6 +24,8 @@ extern "C" {_CRTIMP void __cdecl _CRT_DEBUGGER_HOOK(int);}
#endif // _MSC_VER
#endif // CRYPTOPP_WIN32_AVAILABLE
+#include "stdcpp.h"
+#include "smartptr.h"
#include "trap.h"
#include <iostream>
@@ -29,9 +33,8 @@ extern "C" {_CRTIMP void __cdecl _CRT_DEBUGGER_HOOK(int);}
#if GCC_DIAGNOSTIC_AWARE
# pragma GCC diagnostic ignored "-Wunused-value"
# pragma GCC diagnostic ignored "-Wunused-variable"
-# if defined(__clang__)
-# pragma GCC diagnostic ignored "-Wunneeded-internal-declaration"
-# endif // Clang
+# pragma GCC diagnostic ignored "-Wunknown-pragmas"
+# pragma GCC diagnostic ignored "-Wunneeded-internal-declaration"
#endif // GCC Diagnostics
NAMESPACE_BEGIN(CryptoPP)
@@ -256,7 +259,7 @@ MessageAuthenticationCode * NewIntegrityCheckingMAC()
bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModuleMac, SecByteBlock *pActualMac, unsigned long *pMacFileLocation)
{
- std::auto_ptr<MessageAuthenticationCode> mac(NewIntegrityCheckingMAC());
+ auto_ptr<MessageAuthenticationCode> mac(NewIntegrityCheckingMAC());
unsigned int macSize = mac->DigestSize();
SecByteBlock tempMac;
diff --git a/hrtimer.cpp b/hrtimer.cpp
index 1197e7e4..d869e6ba 100644
--- a/hrtimer.cpp
+++ b/hrtimer.cpp
@@ -16,8 +16,6 @@
#include <unistd.h>
#endif
-#include <assert.h>
-
NAMESPACE_BEGIN(CryptoPP)
#ifndef CRYPTOPP_IMPORTS
diff --git a/stdcpp.h b/stdcpp.h
index bf23df42..b4b94136 100644
--- a/stdcpp.h
+++ b/stdcpp.h
@@ -7,7 +7,6 @@
#endif
#include <stddef.h>
-#include <assert.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>