diff options
author | phk <phk@FreeBSD.org> | 2007-12-01 19:28:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2007-12-01 19:28:13 +0000 |
commit | 537b9f07099ad8a6cfa518836958269bda30e6bc (patch) | |
tree | 6b9a3fee3efd25ca0204605aa959d194f8e7f72e | |
parent | 0ab794a171ac6568b244e0f424efa9bcf4eb25a1 (diff) | |
download | FreeBSD-src-537b9f07099ad8a6cfa518836958269bda30e6bc.zip FreeBSD-src-537b9f07099ad8a6cfa518836958269bda30e6bc.tar.gz |
Only protect the prototypes with #ifndef _ASSERT_H_, the standards
specifically allow changes to the NDEBUG macro between #includes of assert.h
-rw-r--r-- | include/assert.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/assert.h b/include/assert.h index e87fa90..763ab5c 100644 --- a/include/assert.h +++ b/include/assert.h @@ -39,9 +39,6 @@ * $FreeBSD$ */ -#ifndef _ASSERT_H_ -#define _ASSERT_H_ - #include <sys/cdefs.h> /* @@ -62,6 +59,8 @@ __LINE__, #e)) #endif /* NDEBUG */ +#ifndef _ASSERT_H_ +#define _ASSERT_H_ __BEGIN_DECLS void __assert(const char *, const char *, int, const char *); __END_DECLS |