freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] LPBYTE typedef in sqlfront.h and php_mssql.c
- From: jklowden AT freetds.org
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] LPBYTE typedef in sqlfront.h and php_mssql.c
- Date: Fri, 17 Jun 2011 11:50:07 -0400
On Thu, Jun 16, 2011 at 10:14:51PM +0000, Stuart Henderson wrote:
> http://freetds.cvs.sourceforge.net/viewvc/freetds/freetds/include/sqlfront.h?r1=1.5&r2=1.6&view=patch
>
> include/sqlfront.h r1.6 added a number of typedefs for "Better Win32
> compatibility", including this:
>
> +typedef BYTE * LPBYTE;
>
> It breaks build of php_mssql, would it be appropriate to #ifdef this?
Microsoft's sqlfront.h conditions the typedef on DBNTWIN32. Would that
serve your purpose?
#ifndef DBNTWIN32
...
typedef CHAR PTR LPSTR;
typedef BYTE PTR LPBYTE;
typedef void PTR LPVOID;
typedef const CHAR PTR LPCSTR;
typedef int BOOL;
#endif
--jkl
-
[freetds] LPBYTE typedef in sqlfront.h and php_mssql.c,
Stuart Henderson, 06/16/2011
-
Re: [freetds] LPBYTE typedef in sqlfront.h and php_mssql.c,
jklowden, 06/17/2011
-
Re: [freetds] LPBYTE typedef in sqlfront.h and php_mssql.c,
Stuart Henderson, 06/17/2011
- Re: [freetds] LPBYTE typedef in sqlfront.h and php_mssql.c, jklowden, 06/17/2011
-
Re: [freetds] LPBYTE typedef in sqlfront.h and php_mssql.c,
Stuart Henderson, 06/17/2011
-
Re: [freetds] LPBYTE typedef in sqlfront.h and php_mssql.c,
jklowden, 06/17/2011
Archive powered by MHonArc 2.6.24.