diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-19 15:48:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-19 15:48:36 +0000 |
commit | 820fb4190565034c0850eaf0e239c59f20cc8d9b (patch) | |
tree | f6db36f00fbec708760557db3edf629fc9bc6a7d /include/assert.h | |
parent | 18c911e14815bb0c3399d392fff2d792395ec5d7 (diff) |
avoid cranking libc minors for another few weeks
Diffstat (limited to 'include/assert.h')
-rw-r--r-- | include/assert.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/assert.h b/include/assert.h index dfa5efae6c7..66f96c9828f 100644 --- a/include/assert.h +++ b/include/assert.h @@ -1,4 +1,4 @@ -/* $OpenBSD: assert.h,v 1.5 2002/04/17 16:00:34 espie Exp $ */ +/* $OpenBSD: assert.h,v 1.6 2002/04/19 15:48:35 deraadt Exp $ */ /* $NetBSD: assert.h,v 1.6 1994/10/26 00:55:44 cgd Exp $ */ /*- @@ -49,22 +49,16 @@ #undef assert #undef _assert -#include <sys/cdefs.h> - #ifdef NDEBUG -# define assert(e) ((void)0) -# define _assert(e) ((void)0) +#define assert(e) ((void)0) +#define _assert(e) ((void)0) #else -# define _assert(e) assert(e) -# if __GNUC_PREREQ__(2, 95) || (defined(__STDC__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) -# define assert(e) ((e) ? (void)0 : __assert2(__FILE__, __LINE__, __func__, #e)) -# else -# define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e)) -# endif +#define _assert(e) assert(e) +#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e)) #endif +#include <sys/cdefs.h> __BEGIN_DECLS void __assert(const char *, int, const char *); -void __assert2(const char *, int, const char *, const char *); __END_DECLS |