Re: cvs: php4 /main php.h
| From: | Yasuo Ohgaki | Date: | Fri, 15 Mar 2002 09:52:57 +0000 |
| Subject: | Re: cvs: php4 /main php.h | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-10144@lists.php.net to get a copy of this message | ||
Yasuo Ohgaki wrote:
yohgaki Fri Mar 15 01:36:56 2002 EDTAccording to Derick's post, VC defines NDEBUG somewhere else. Following patch should fix "redfined" warnings. Anyone could test under VC? Do I need "#define assert(expr) ASSERT(expr)" also for VC? --- php.h.~1.161.~ Fri Mar 15 15:36:56 2002 +++ php.h Fri Mar 15 18:47:43 2002 @@ -63,18 +63,18 @@ #include "php_regex.h" -#ifndef PHP_WIN32 #if HAVE_ASSERT_H #if PHP_DEBUG #undef NDEBUG #else +#ifndef NDEBUG #define NDEBUG +#endif /* NDEBUG */ #endif #include <assert.h> #else /* HAVE_ASSERT_H */ #define assert(expr) ((void) (0)) #endif /* HAVE_ASSERT_H */ -#endif /* PHP_WIN32 */ #define APACHE 0Modified files: /php4/main php.h Log:Avoid warnings under VC. # If you know how assert() should be used under VC, please fix it.