commit 81916340a7c090c9f3ddf7a3cafc2cbbaaf5ea71
parent f080d87e480ee8914ffa45203d52e1da5612be57
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 24 Oct 2022 19:43:04 +0200
libc: undef assert at the beginning of assert.h
assert.h can be included several times with different values
of NDEBUG.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/assert.h b/include/assert.h
@@ -1,7 +1,8 @@
+#undef assert
+
extern void __assert(char *, char *, long);
extern void assert(int);
-#undef assert
#ifndef NDEBUG
# define assert(exp) ((exp) ? (void) 0 : __assert(#exp, __FILE__, __LINE__))
#else