diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-14 02:17:23 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-14 02:17:23 +0000 |
commit | cbc1cd802cccddef0ee86533ee08dc730b4e27f4 (patch) | |
tree | c57ea2cfcfabdd75ef041162d276c7a4ff357f26 /main/php.h | |
parent | aba912e66fb382a31afa63c41a56f9765820d84c (diff) | |
download | php-git-cbc1cd802cccddef0ee86533ee08dc730b4e27f4.tar.gz |
Include/enable assert.h/assert() when it is available
Diffstat (limited to 'main/php.h')
-rw-r--r-- | main/php.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/main/php.h b/main/php.h index e17d6d886a..131ac7819e 100644 --- a/main/php.h +++ b/main/php.h @@ -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 |