mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 15:38:06 +01:00
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
cdd475b347
commit
19d6d0eb9a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174133
@ -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