summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-02-23 13:25:28 +0100
committerBruno Haible <bruno@clisp.org>2020-02-23 13:25:28 +0100
commitfd783467d341d2916ef5a798748c2bab20e6ec2a (patch)
tree60706894bf468b889aaaaafaff6c1211cbc8ecc0 /m4
parent7d4a2b0c17628cc4e5fc159b26498564706ee1be (diff)
downloadgnulib-fd783467d341d2916ef5a798748c2bab20e6ec2a.tar.gz
crypto/sm3: Use 'restrict'.
* lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'. * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
Diffstat (limited to 'm4')
-rw-r--r--m4/sm3.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/sm3.m4 b/m4/sm3.m4
index af8cb5a8bd..cb31930eae 100644
--- a/m4/sm3.m4
+++ b/m4/sm3.m4
@@ -1,4 +1,4 @@
-# sm3.m4 serial 1
+# sm3.m4 serial 2
dnl Copyright (C) 2017-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -6,6 +6,9 @@ dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_SM3],
[
+ dnl Prerequisites of lib/sm3.h.
+ AC_REQUIRE([AC_C_RESTRICT])
+
dnl Prerequisites of lib/sm3.c.
AC_REQUIRE([gl_BIGENDIAN])