aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_hash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_hash.cpp')
-rw-r--r--src/tests/test_hash.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tests/test_hash.cpp b/src/tests/test_hash.cpp
index 39b13de32..0424e94f3 100644
--- a/src/tests/test_hash.cpp
+++ b/src/tests/test_hash.cpp
@@ -6,10 +6,14 @@
#include "tests.h"
-#include <botan/hash.h>
+#if defined(BOTAN_HAS_HASH)
+ #include <botan/hash.h>
+#endif
namespace Botan_Tests {
+#if defined(BOTAN_HAS_HASH)
+
namespace {
class Hash_Function_Tests final : public Text_Based_Test
@@ -109,4 +113,6 @@ BOTAN_REGISTER_TEST("hash", Hash_Function_Tests);
}
+#endif
+
}