From 19d6d0eb9a43eecf4df0f9582634232d8b4e30c8 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 1 Dec 2007 19:28:13 +0000 Subject: [PATCH] Only protect the prototypes with #ifndef _ASSERT_H_, the standards specifically allow changes to the NDEBUG macro between #includes of assert.h --- include/assert.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/assert.h b/include/assert.h index e87fa9066dcc..763ab5ce660d 100644 --- a/include/assert.h +++ b/include/assert.h @@ -39,9 +39,6 @@ * $FreeBSD$ */ -#ifndef _ASSERT_H_ -#define _ASSERT_H_ - #include /* @@ -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