At 00:35 13.08.2002, Nathan Fredrickson wrote:
>I've been using the gettext extension with php 4.2.1 on win32.  I have found
>that the plural gettext functions are not available (ngettext(),
>dngettext(), dcngettext()).  The manual says these functions should be
>available above 4.2.0, and these functions do work in 4.2.1 on linux.
>
>Looking at the code in the CVS I see that these functions are wrapped with
>conditional directives: HAVE_NGETTEXT, HAVE_DNGETTEXT, and HAVE_DCNGETTEXT.
>
>These directives are set in /ext/gettext/config.m4 if the proper libraries
>exist.  However these directives to do not appear at all in
>/ext/gettext/gettext.dsp (the win32 project file).  Is this an oversight or
>is there a reason the plural gettext functions are not available in the
>win32 build of php?
>
>Thanks,
>nathan

Generally spoken there is main/php.h which includes main/php_compta.h which 
then
loads correct configuration header. See abstract:
#ifdef PHP_WIN32
#include "config.w32.h"
#elif defined(NETWARE)
#include "config.nw.h"
#else
#include "php_config.h"
#endif

Therefore any special win 32 treatment shall be done in config.w32.h. If 
some function is
missing then keep in mind that msvc.6 is not C99 compliant but msvc.NET 
will be. If a dsp
file loads those libraries you can add #define HAVE_xxx 1 in config.w32.h.
Or  if it is a subproject for a dll then you may even define it by the dsp 
file.

For more eyplanation about the functions in question ask other ones...

hope this helps a bit.

marcus


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to