Only protect the prototypes with #ifndef _ASSERT_H_, the standards

specifically allow changes to the NDEBUG macro between #includes of assert.h
This commit is contained in:
Poul-Henning Kamp 2007-12-01 19:28:13 +00:00
parent cdd475b347
commit 19d6d0eb9a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174133

View File

@ -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