aboutsummaryrefslogtreecommitdiffstats
path: root/sha_512_256.c
diff options
context:
space:
mode:
Diffstat (limited to 'sha_512_256.c')
-rw-r--r--sha_512_256.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sha_512_256.c b/sha_512_256.c
index 1f41597..f4b168b 100644
--- a/sha_512_256.c
+++ b/sha_512_256.c
@@ -1,6 +1,7 @@
/* See LICENSE file for copyright and license details. */
-#define TEST
-#include "common.h"
+#ifdef SUPPORT_SHA2
+# define TEST
+# include "common.h"
static struct testcase testcases[] = {
@@ -12,6 +13,12 @@ static struct testcase testcases[] = {
};
+#else
+# define TEST_UNSUPPORTED
+# include "common.h"
+#endif
+
+
int
main(void)
{