diff options
| author | gmcgarry <gmcgarry@NetBSD.org> | 2008-08-17 00:24:35 +0000 |
|---|---|---|
| committer | gmcgarry <gmcgarry@NetBSD.org> | 2008-08-17 00:24:35 +0000 |
| commit | ff2c02da97ea674ca39446b1108549dfad40d045 (patch) | |
| tree | b20a20db7ebeb0abdad484eef5e674c0b4b95b29 /include/assert.h | |
| parent | bd54417ad9314be53a1b45846d75a1f92c16183c (diff) | |
Define away __assert_function__ if __lint__.
Diffstat (limited to 'include/assert.h')
| -rw-r--r-- | include/assert.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/assert.h b/include/assert.h index ea8b4f741e9..f495ab0ac61 100644 --- a/include/assert.h +++ b/include/assert.h @@ -1,4 +1,4 @@ -/* $NetBSD: assert.h,v 1.18 2005/02/03 04:39:32 perry Exp $ */ +/* $NetBSD: assert.h,v 1.19 2008/08/17 00:24:35 gmcgarry Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -84,7 +84,9 @@ #endif /* _DIAGNOSTIC */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#if defined(__lint__) +#define __assert_function__ (__static_cast(const void *,0)) +#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __assert_function__ __func__ #elif __GNUC_PREREQ__(2, 6) #define __assert_function__ __PRETTY_FUNCTION__ |
