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:
parent
0ab794a171
commit
537b9f0709
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user