freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
[freetds] LPBYTE typedef in sqlfront.h and php_mssql.c
- From: Stuart Henderson <stu AT spacehopper.org>
- To: freetds AT lists.ibiblio.org
- Subject: [freetds] LPBYTE typedef in sqlfront.h and php_mssql.c
- Date: Thu, 16 Jun 2011 22:14:51 +0000 (UTC)
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?
In file included from
/usr/obj/ports/php-5.2.17/php-5.2.17/ext/mssql/php_mssql.c:33:
/usr/obj/ports/php-5.2.17/php-5.2.17/ext/mssql/php_mssql.h:73: error:
redefinition of typedef 'LPBYTE'
/usr/local/include/sqlfront.h:34: error: previous declaration of 'LPBYTE' was
here
/usr/obj/ports/php-5.2.17/php-5.2.17/ext/mssql/php_mssql.c: In function
'php_mssql_do_connect':
/usr/obj/ports/php-5.2.17/php-5.2.17/ext/mssql/php_mssql.c:667: warning: cast
from pointer to integer of different size
/usr/obj/ports/php-5.2.17/php-5.2.17/ext/mssql/php_mssql.c: In function
'php_mssql_get_column_content_without_type':
/usr/obj/ports/php-5.2.17/php-5.2.17/ext/mssql/php_mssql.c:1033: warning:
passing argument 1 of 'spprintf' from incompatible pointer type
cheers,
Stuart
-
[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.