Re: PHP 4.0 Bug #6677 Updated: Compile with native xlC varfs: duplicate def for int8

From: Date: Fri, 02 Feb 2001 20:31:16 +0000
Subject: Re: PHP 4.0 Bug #6677 Updated: Compile with native xlC varfs: duplicate def for int8
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-45641@lists.php.net to get a copy of this message
This problem does still exist. However, the following workaround should take care of it. Unfortunately, I don't have the karma to commit it so would some powerful being check out the following fix and take care of it for me? Thanks. Index: ext/mysql/libmysql/global.h =================================================================== RCS file: /repository/php4/ext/mysql/libmysql/global.h,v retrieving revision 1.7 diff -u -r1.7 global.h --- ext/mysql/libmysql/global.h 2001/01/23 16:48:49 1.7 +++ ext/mysql/libmysql/global.h 2001/02/02 19:52:49 @@ -544,7 +544,7 @@ #else typedef char *gptr; /* Generic pointer */ #endif -#ifndef HAVE_INT_8_16_32 +#if !defined(HAVE_INT_8_16_32) && !defined(_H_INTTYPES) typedef char int8; /* Signed integer >= 8 bits */ typedef short int16; /* Signed integer >= 16 bits */ #endif @@ -555,12 +555,12 @@ typedef unsigned short uint16; /* Short for unsigned integer >= 16 bits */ #if SIZEOF_INT == 4 -#ifndef HAVE_INT_8_16_32 +#if !defined(HAVE_INT_8_16_32) && !defined(_H_INTTYPES) typedef int int32; #endif typedef unsigned int uint32; /* Short for unsigned integer >= 32 bits */ #elif SIZEOF_LONG == 4 -#ifndef HAVE_INT_8_16_32 +#if !defined(HAVE_INT_8_16_32) && !defined(_H_INTTYPES) typedef long int32; #endif typedef unsigned long uint32; /* Short for unsigned integer >= 32 bits */

« previous php.dev (#45641) next »