Bug #51943 [Opn->Asn]: Several files are out of ANSI spec
| From: | kalle@php.net | Date: | Mon, 21 Jun 2010 05:49:31 +0000 |
| Subject: | Bug #51943 [Opn->Asn]: Several files are out of ANSI spec | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151706@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51943&edit=1
ID: 51943
Updated by: kalle@php.net
Reported by: CoreyStup at gmail dot com
Summary: Several files are out of ANSI spec
-Status: Open
+Status: Assigned
Type: Bug
Package: Compile Failure
Operating System: AIX
PHP Version: 5.2.13
-Assigned To:
+Assigned To: kalle
New Comment:
The parse_date.c one is quite easy too, its just a matter of:
#ifndef _AIX
typedef ...
#endif
Since parse_date.c also defines uchar to unsigned char, im assigning
this bug to myself and see if i can get my sparse co working and ill
commit this
Previous Comments:
------------------------------------------------------------------------
[2010-05-28 17:08:09] CoreyStup at gmail dot com
Description:
------------
Using a native compiler on AIX, several files are not ANSI compliant and
won't compile.
ext/pdo/php_pdo_driver.h, trailing commas are not allowed in enums.
ext/hash/php_hash_tiger.h, bitfields must be defined as type int,
unsigned int,
or signed int. char is not allowed.
ext/date/lib/parse_date.c, uchar already defined conflict. I'm not sure
what the correct fix is. AIX already has uchar defined in sys/types.h:
/usr/include/sys/types.h:typedef unsigned char uchar_t;
/usr/include/sys/types.h:typedef uchar_t uchar;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51943&edit=1