Re: [PHP-DEV] cvs: php4 /main php.h

2002-03-15 Thread Andi Gutmans
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

Re: [PHP-DEV] cvs: php4 /main php.h

2002-03-15 Thread Christoph Kassen
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 Index: php.h === RCS file: /repository/php4/main/php.h,v retrieving revisi

RE: [PHP-DEV] cvs: php4 /main php.h

2002-03-15 Thread Marc Boeren
> Accoding to ISO9899(ANSI C) standard, NDEBUG is used for assert.h. > VC may define/use it some other reasons? I just don't have any idea. VC defines it for any(!) project you create as a compiler setting ( /D "NDEBUG" ) (for Release versions, for Debug versions it does /D "_DEBUG") As to the