From d07c7914a0138d68bbaeadc692265fe48e8251b2 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 12 Dec 2008 16:02:48 -0800 Subject: [PATCH] Refresh context for assert --- lib/libzpool/include/sys/zfs_context.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libzpool/include/sys/zfs_context.h b/lib/libzpool/include/sys/zfs_context.h index 36159c42a3..1f1b52bbf2 100644 --- a/lib/libzpool/include/sys/zfs_context.h +++ b/lib/libzpool/include/sys/zfs_context.h @@ -104,7 +104,8 @@ extern void vpanic(const char *, __va_list); #define fm_panic panic /* This definition is copied from assert.h. */ -#if defined(__STDC__) && !defined(verify) +#if !defined(verify) +#if defined(__STDC__) #if __STDC_VERSION__ - 0 >= 199901L #define verify(EX) (void)((EX) || \ (__assert_c99(#EX, __FILE__, __LINE__, __func__), 0)) @@ -114,6 +115,7 @@ extern void vpanic(const char *, __va_list); #else #define verify(EX) (void)((EX) || (_assert("EX", __FILE__, __LINE__), 0)) #endif /* __STDC__ */ +#endif /* !verify */ #define VERIFY verify