Include/enable assert.h/assert() when it is available

This commit is contained in:
Yasuo Ohgaki 2002-03-14 02:17:23 +00:00
parent aba912e66f
commit cbc1cd802c
3 changed files with 14 additions and 1 deletions

View file

@ -63,7 +63,16 @@
#include "php_regex.h"
#if HAVE_ASSERT_H
#if PHP_DEBUG
#undef NDEBUG
#else
#define NDEBUG
#endif
#include <assert.h>
#else /* HAVE_ASSERT_H */
#define assert(expr) ((void) (0))
#endif /* HAVE_ASSERT_H */
#define APACHE 0