Date: 12/21/00
- Next message: sas <email protected>: "[PHP-DEV] PHP 4.0 Bug #8345 Updated: Non-ANSI code"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] RE: [PHP-QA] RE: [PHP-DEV] 4.0.4 Release (Summary of thoughts)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is there some #define we can check to see if the compiler supports this?
Andi
>Date: 21 Dec 2000 02:56:53 -0000
>To: php-dev <email protected>
>From: china <email protected>
>Subject: [PHP-DEV] PHP 4.0 Bug #8345: Non-ANSI code
>
>From: china <email protected>
>Operating system: Solaris 7/SPARC
>PHP version: 4.0.4
>PHP Bug Type: Compile Problem
>Bug description: Non-ANSI code
>
>ext/session/mod_mm.c has the following:
>
> #if 0
> #define ps_mm_debug(a...) fprintf(stderr, a)
> #else
> #define ps_mm_debug(a...)
> #endif
>
>Here's what gcc -pedantic -ansi has to say about this:
> warning: ANSI C does not allow macro with variable arguments
>
>The Solaris C compiler dies outright:
>"mod_mm.c", line 60: invalid token in #define macro parameters: ...
>cc: acomp failed for mod_mm.c
>
>
>
>--
>Edit Bug report at: http://bugs.php.net/?id=8345&edit=1
>
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: sas <email protected>: "[PHP-DEV] PHP 4.0 Bug #8345 Updated: Non-ANSI code"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] RE: [PHP-QA] RE: [PHP-DEV] 4.0.4 Release (Summary of thoughts)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

