php 5.3 sqlfront.h

Stuart Henderson <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
php 5.3 no longer defines PHP_MSSQL_API, so the ifdef in sqlfront.h
doesn't knock out the conflicting typedef. With the diff below, both
php 5.2 and 5.3 build successfully.

--- include/sqlfront.h.orig	Wed Sep  7 11:11:22 2011
+++ include/sqlfront.h	Wed Sep  7 11:14:15 2011
@@ -31,7 +31,7 @@ typedef DBCURSOR  * PDBCURSOR;
 
 typedef       int  *	LPINT;
 typedef       char *	LPSTR;
-#if !defined(PHP_MSSQL_H) || !defined(PHP_MSSQL_API)
+#if !(defined(PHP_MSSQL_H) || defined(PHP_MSSQL_API))
 typedef       BYTE *	LPBYTE;
 #endif
 typedef       void *	LPVOID;
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.