summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2021-01-01 22:00:49 +1100
committerDarren Tucker <dtucker@dtucker.net>2021-01-01 22:00:49 +1100
commita23954eeb930ccc8a66a2710153730769dba31b6 (patch)
tree301c097d53f4c444ea27bf179225bc67a8e16477
parent148b8a661c3f93e4b6d049ee902de3d521261fbc (diff)
Undef int32 after sort routines.
This prevents typedef'ing crypto_int32 twice, in sntrup761.c and crypto_api.h, which some compilers (at least some GCCs) don't accept.
-rw-r--r--sntrup761.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sntrup761.c b/sntrup761.c
index db5aaacab..5b2456ad2 100644
--- a/sntrup761.c
+++ b/sntrup761.c
@@ -92,6 +92,8 @@ static void crypto_sort_uint32(void *array,long long n)
for (j = 0;j < n;++j) x[j] ^= 0x80000000;
}
+#undef int32
+
/* from supercop-20201130/crypto_kem/sntrup761/ref/uint64.h */
#ifndef UINT64_H
#define UINT64_H