fix build in case CX_SZMUL_BUILTIN is undefined

Mon, 04 Mar 2024 08:57:26 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 04 Mar 2024 08:57:26 +0100
changeset 841
93851c0babe4
parent 840
4f02995ce44e
child 842
b48cbfa109d4

fix build in case CX_SZMUL_BUILTIN is undefined

src/szmul.c file | annotate | diff | comparison | revisions
tests/test_utils.c file | annotate | diff | comparison | revisions
--- a/src/szmul.c	Mon Feb 26 21:07:23 2024 +0100
+++ b/src/szmul.c	Mon Mar 04 08:57:26 2024 +0100
@@ -43,4 +43,4 @@
         *result = 0;
         return 1;
     }
-}
\ No newline at end of file
+}
--- a/tests/test_utils.c	Mon Feb 26 21:07:23 2024 +0100
+++ b/tests/test_utils.c	Mon Mar 04 08:57:26 2024 +0100
@@ -248,7 +248,9 @@
     cx_test_register(suite, test_forn);
     cx_test_register(suite, test_swap_ptr);
     cx_test_register(suite, test_szmul);
+#ifdef CX_SZMUL_BUILTIN
     cx_test_register(suite, test_szmul_impl);
+#endif
 
     return suite;
 }

mercurial