Re: osx changes

From: Date: Wed, 21 Apr 1999 20:49:41 +0000
Subject: Re: osx changes
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-5184@lists.php.net to get a copy of this message
Chad Cunningham wrote: > > I'm going to play around with the setup for a few days to make sure > everything is ok, and make sure none of the changes broke anything > compiling on other platforms. There are two things which caused some > problems that I'm wondering what the best approach would be to fix. First, > the compiler complained because the macro HAVE_SNPRINTF is defined in both > php and apache. It's solution to this problem was to ignore the macro > altogether, which is bad. My quick solution was to change the name of the > macro in config.h and the other files that use it (php.h, snprintf.h, > snprintf.c). But the macro is automatically named by autoheader, and I'm > not sure how to do a different name. So, is there a way to check for it > without using AC_CHECK_FUNC (other than writing a little program to > check...). Or, is there something I can feed the compiler to tell it to > use php's macro? This conflict should normally not occur because both PHP and Apache would define HAVE_SNPRINTF to the same value. If they try setting it to different values, you have a fishy setup (either in Apache or with a stale config.cache file in PHP). - Stig -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5184) next »