Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22700 invoked from network); 21 Mar 2003 07:44:15 -0000 Received: from unknown (HELO silverorange.com) (198.167.161.36) by pb1.pair.com with SMTP; 21 Mar 2003 07:44:15 -0000 Received: from pandor [24.226.106.28] by silverorange.com with ESMTP (SMTPD32-6.06) id A2DA1A01F8; Fri, 21 Mar 2003 03:44:26 -0400 To: "php.internals" Date: Fri, 21 Mar 2003 02:43:28 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0063_01C2EF53.A7132910" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Subject: RE: [PHP-DEV] [PATCH] ext/gettext/gettext.dsp From: nathan@silverorange.com ("Nathan Fredrickson") References: ------=_NextPart_000_0063_01C2EF53.A7132910 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Here's the patch. (Attachment extension had to be .txt) > -----Original Message----- > From: Nathan Fredrickson [mailto:nathan@silverorange.com] > Sent: Friday, March 21, 2003 2:39 AM > To: php.internals > Subject: [PHP-DEV] [PATCH] ext/gettext/gettext.dsp > > > The attached patch contains a couple of changes to win32 project file for > the gettext extension. > > Add defines necessary to enable plural gettext functions on win32. These > functions exist in the current libintl-1.dll, but are currently > unaccessible > from php. > /D HAVE_NGETTEXT=1 > /D HAVE_DNGETTEXT=1 > > Changed the import lib that is linked to libintl.lib intstead of > gnu_gettext.lib. As far as I know these two import libs are identical and > both are available at: > http://ftp.proventum.net/pub/php/win32/misc/dev/php_build/lib/ > > Nathan > > ------=_NextPart_000_0063_01C2EF53.A7132910 Content-Type: text/plain; name="gettext-dsp-patch.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="gettext-dsp-patch.txt" Index: php4/ext/gettext/gettext.dsp=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /repository/php4/ext/gettext/gettext.dsp,v=0A= retrieving revision 1.2=0A= diff -u -r1.2 gettext.dsp=0A= --- php4/ext/gettext/gettext.dsp 14 Jan 2003 14:46:33 -0000 1.2=0A= +++ php4/ext/gettext/gettext.dsp 15 Mar 2003 02:57:58 -0000=0A= @@ -44,7 +44,7 @@=0A= # PROP Ignore_Export_Lib 0=0A= # PROP Target_Dir ""=0A= # ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "..\.." /I "..\..\..\Zend" /I = "..\..\..\bindlib_w32" /I "..\..\..\TSRM" /D "WIN32" /D "NDEBUG" /D = "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPILE_DL_GETTEXT" /D ZTS=3D1 = /YX /FD /c=0A= -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\main" /I = "..\..\Zend" /I "..\..\..\bindlib_w32" /I "..\..\TSRM" /D "WIN32" /D = "GETTEXT_EXPORTS" /D "COMPILE_DL_GETTEXT" /D ZTS=3D1 /D HAVE_LIBINTL=3D1 = /D HAVE_BIND_TEXTDOMAIN_CODESET=3D1 /D ZEND_DEBUG=3D0 /D "NDEBUG" /D = "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "ZEND_WIN32" /D "PHP_WIN32" /FR = /YX /FD /c=0A= +# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\main" /I = "..\..\Zend" /I "..\..\..\bindlib_w32" /I "..\..\TSRM" /D ZEND_DEBUG=3D0 = /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D = "GETTEXT_EXPORTS" /D "COMPILE_DL_GETTEXT" /D ZTS=3D1 /D "ZEND_WIN32" /D = "PHP_WIN32" /D HAVE_LIBINTL=3D1 /D HAVE_BIND_TEXTDOMAIN_CODESET=3D1 /D = HAVE_NGETTEXT=3D1 /D HAVE_DNGETTEXT=3D1 /FR /YX /FD /c=0A= # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32=0A= # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32=0A= # ADD BASE RSC /l 0x406 /d "NDEBUG"=0A= @@ -54,7 +54,7 @@=0A= # ADD BSC32 /nologo=0A= LINK32=3Dlink.exe=0A= # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib = comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib = odbc32.lib odbccp32.lib php4ts.lib /nologo /dll /machine:I386 = /out:"..\..\Release_TS/php_gettext.dll" /libpath:"..\..\Release_TS" = /libpath:"..\..\Release_TS_Inline"=0A= -# ADD LINK32 php4ts.lib gnu_gettext.lib kernel32.lib user32.lib = gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib = oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 = /out:"..\..\Release_TS/php_gettext.dll" /libpath:"..\..\Release_TS" = /libpath:"..\..\Release_TS_Inline"=0A= +# ADD LINK32 php4ts.lib libintl.lib kernel32.lib user32.lib gdi32.lib = winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib = oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 = /out:"..\..\Release_TS/php_gettext.dll" /libpath:"..\..\Release_TS" = /libpath:"..\..\Release_TS_Inline"=0A= =0A= !ELSEIF "$(CFG)" =3D=3D "gettext - Win32 Debug_TS"=0A= =0A= @@ -71,7 +71,7 @@=0A= # PROP Ignore_Export_Lib 0=0A= # PROP Target_Dir ""=0A= # ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "..\.." /I "..\..\Zend" /I = "..\..\..\bindlib_w32" /I "..\..\TSRM" /D "WIN32" /D "NDEBUG" /D = "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "MSSQL_EXPORTS" /D = "COMPILE_DL_GETTEXT" /D ZTS=3D1 /YX /FD /c=0A= -# ADD CPP /nologo /MDd /W3 /GX /ZI /Od /I "..\.." /I "..\..\main" /I = "..\..\Zend" /I "..\..\..\bindlib_w32" /I "..\..\TSRM" /D ZEND_DEBUG=3D1 = /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D = "GETTEXT_EXPORTS" /D "COMPILE_DL_GETTEXT" /D ZTS=3D1 /D "ZEND_WIN32" /D = "PHP_WIN32" /D HAVE_LIBINTL=3D1 /D HAVE_BIND_TEXTDOMAIN_CODESET=3D1 /FR = /YX /FD /c=0A= +# ADD CPP /nologo /MDd /W3 /GX /ZI /Od /I "..\.." /I "..\..\main" /I = "..\..\Zend" /I "..\..\..\bindlib_w32" /I "..\..\TSRM" /D ZEND_DEBUG=3D1 = /D HAVE_NGETTEXT=3D1 /D HAVE_DNGETTEXT=3D1 /D "WIN32" /D "NDEBUG" /D = "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GETTEXT_EXPORTS" /D = "COMPILE_DL_GETTEXT" /D ZTS=3D1 /D "ZEND_WIN32" /D "PHP_WIN32" /D = HAVE_LIBINTL=3D1 /D HAVE_BIND_TEXTDOMAIN_CODESET=3D1 /FR /YX /FD /c=0A= # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32=0A= # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32=0A= # ADD BASE RSC /l 0x406 /d "NDEBUG"=0A= @@ -81,7 +81,7 @@=0A= # ADD BSC32 /nologo=0A= LINK32=3Dlink.exe=0A= # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib = comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib = odbc32.lib odbccp32.lib php4ts.lib /nologo /dll /machine:I386 = /out:"../../Debug_TS/php_gettext.dll" /libpath:"..\..\Debug_TS"=0A= -# ADD LINK32 php4ts_debug.lib gnu_gettext.lib kernel32.lib user32.lib = gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib = oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll = /incremental:yes /debug /machine:I386 = /out:"../../Debug_TS/php_gettext.dll" /libpath:"..\..\Debug_TS"=0A= +# ADD LINK32 php4ts_debug.lib libintl.lib kernel32.lib user32.lib = gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib = oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll = /incremental:yes /debug /machine:I386 = /out:"../../Debug_TS/php_gettext.dll" /libpath:"..\..\Debug_TS"=0A= =0A= !ENDIF =0A= =0A= ------=_NextPart_000_0063_01C2EF53.A7132910--