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:
phk 2007-12-01 19:28:13 +00:00
parent 0ab794a171
commit 537b9f0709

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