From 438a5e5f01b5dec13ad62ca2713208d837e637f4 Mon Sep 17 00:00:00 2001 From: denghao Date: Thu, 10 Nov 2022 05:36:51 +0300 Subject: [PATCH] local-asserth-decls.diff From: Ubuntu Developers Date: Fri, 11 Nov 2022 23:32:10 +0800 Subject: local-asserth-decls --- assert/assert.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assert/assert.h b/assert/assert.h index 67f1cce5..62af61e9 100644 --- a/assert/assert.h +++ b/assert/assert.h @@ -61,6 +61,8 @@ #else /* Not NDEBUG. */ +#ifndef _ASSERT_H_DECLS +#define _ASSERT_H_DECLS __BEGIN_DECLS /* This prints an "Assertion failed" message and aborts. */ @@ -81,6 +83,7 @@ extern void __assert (const char *__assertion, const char *__file, int __line) __END_DECLS +#endif /* Not _ASSERT_H_DECLS */ /* When possible, define assert so that it does not add extra parentheses around EXPR. Otherwise, those added parentheses would