Re: LPBYTE typedef in sqlfront.h and php_mssql.c

[email protected]
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.