Re: cvs: php4 /main php.h

From: Date: Fri, 15 Mar 2002 15:42:12 +0000
Subject: Re: cvs: php4 /main php.h
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-81279@lists.php.net to get a copy of this message
The question is if this will break UNIX systems. From the MSDN: --- In C/C++, you can use assertions through assert. In ANSI C, assert has the following definition: void assert(int expression) The assertion will be executed only when the macro NDEBUG is undefined. The program will be aborted if the expression evaluates to false (0); if the expression evaluates to true (non-0), assert has no effect. --- Therefore your patch seems to be correct for Windows. The linux man page says: --- This only happens when the macro NDEBUG is undefined. --- So it sounds as if not defining NDEBUG by force is the correct way. If no one objects I'll apply your patch in a few hours. Andi At 02:54 PM 3/15/2002 +0100, Christoph Kassen wrote:
Hey, this patch fixes the NDEBUG redefinition errors you get when building latest cvs with VC. Anyone with enough karma please apply this patch. Christoph -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.dev (#81279) next »