aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com>2022-07-28 11:57:13 +0200
committerGitHub <noreply@github.com>2022-07-28 11:57:13 +0200
commit0eeb8e142c84d3e48cca790b5499aa009ff3e245 (patch)
treead32dd50f65363c8bd7b27668d6441a2362429b7
parentMerge pull request #41 from noocsharp/master (diff)
parentMerge branch 'master' into rename-debug-symbol (diff)
downloadsiphash-0eeb8e142c84d3e48cca790b5499aa009ff3e245.tar.gz
siphash-0eeb8e142c84d3e48cca790b5499aa009ff3e245.tar.xz
Merge pull request #39 from snej/rename-debug-symbol
Rename `DEBUG` to `DEBUG_SIPHASH` – fixing the makefile upstream
-rw-r--r--halfsiphash.c4
-rw-r--r--siphash.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/halfsiphash.c b/halfsiphash.c
index dacfc8e..18ebadd 100644
--- a/halfsiphash.c
+++ b/halfsiphash.c
@@ -56,8 +56,10 @@
v2 = ROTL(v2, 16); \
} while (0)
-#ifdef DEBUG
+
+#ifdef DEBUG_SIPHASH
#include <stdio.h>
+
#define TRACE \
do { \
printf("(%3zu) v0 %08" PRIx32 "\n", inlen, v0); \
diff --git a/siphash.c b/siphash.c
index 854c6ce..083ca19 100644
--- a/siphash.c
+++ b/siphash.c
@@ -64,8 +64,9 @@
v2 = ROTL(v2, 32); \
} while (0)
-#ifdef DEBUG
+#ifdef DEBUG_SIPHASH
#include <stdio.h>
+
#define TRACE \
do { \
printf("(%3zu) v0 %016" PRIx64 "\n", inlen, v0); \