Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31545 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5905 invoked by uid 1010); 13 Aug 2007 10:25:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5889 invoked from network); 13 Aug 2007 10:25:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2007 10:25:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:31662] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/C1-26820-88130C64 for ; Mon, 13 Aug 2007 06:25:15 -0400 Received: (qmail 11389 invoked from network); 13 Aug 2007 10:25:09 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 13 Aug 2007 10:25:09 -0000 Message-ID: <46C03185.4020200@zend.com> Date: Mon, 13 Aug 2007 14:25:09 +0400 User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: Christian Speich CC: Uwe Schindler , internals@lists.php.net References: <1185527744.6559.6.camel@kleinweby-laptop> <46A9BEC4.5040803@zend.com> <000001c7d038$264a54a0$4cf96686@VEGA> <46A9C98D.4000208@zend.com> <000301c7d048$b758c7a0$4cf96686@VEGA> <46BAD8E8.9000907@zend.com> <000001c7da9e$e1e35b10$0201a8c0@VEGA> <4EB97551-456D-48A8-A955-9E741B3D1996@kleinweby.de> In-Reply-To: <4EB97551-456D-48A8-A955-9E741B3D1996@kleinweby.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] php5 as universal binary (Mac OS X) From: antony@zend.com (Antony Dovgal) On 13.08.2007 14:09, Christian Speich wrote: > hello again, > > so now i have the test results :) (I dont have an ppc mac, so i ask > an friend) As far as I know, GCC on PPC is unable to generate universal binaries, so I don't understand what exactly you were testing there.. > And it dosn't work! > > When i configure it on an intel mac, the WORDS_BIDENDIAN macro will never definied. Right, because Intel is little endian. > But i need to define this macro when the compiler runs the ppc-compile. That's why the ifdefs check for __LITTLE_ENDIAN__ and __BIG_ENDIAN__ which are defined by Apple's GCC. > I think the code should look like this: > > if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined > (__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) > # if defined(__LITTLE_ENDIAN__) > # undef WORDS_BIGENDIAN > # else if defined(__BIG_ENDIAN__) > # define WORDS_BIGENDIAN > # endif > #endif Yes, I guess you're right. -- Wbr, Antony Dovgal