]> granicus.if.org Git - php/commitdiff
Avoid warnings under VC.
authorYasuo Ohgaki <yohgaki@php.net>
Fri, 15 Mar 2002 06:36:56 +0000 (06:36 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Fri, 15 Mar 2002 06:36:56 +0000 (06:36 +0000)
# If you know how assert() should be used under VC, please fix it.

main/php.h

index 131ac7819eea5662ddfe29cb7a0a16c01f88bcaa..fdbf106011eed95a5ec464da4937eb7e9c26a53b 100644 (file)
@@ -63,6 +63,7 @@
 
 #include "php_regex.h"
 
+#ifndef PHP_WIN32
 #if HAVE_ASSERT_H
 #if PHP_DEBUG
 #undef NDEBUG
@@ -73,6 +74,7 @@
 #else /* HAVE_ASSERT_H */
 #define assert(expr) ((void) (0))
 #endif /* HAVE_ASSERT_H */
+#endif /* PHP_WIN32 */
 
 #define APACHE 0