Bug #13504: libmysql LONGLONG conflicts with <winnt.h>

From: Date: Mon, 01 Oct 2001 23:21:31 +0000
Subject: Bug #13504: libmysql LONGLONG conflicts with <winnt.h>
Groups: php.dev 
Request: Send a blank email to php-dev+get-66961@lists.php.net to get a copy of this message
From: blank3@mac.com Operating system: Windows 2000 SP2 PHP version: 4.0.6 PHP Bug Type: Compile Failure Bug description: libmysql LONGLONG conflicts with <winnt.h> (I apologize; I suspect this should be sent to the libmysql maintainer, but half an hour's research has not revealed who that is) When compiling the "libmysql" project in Visual Studio 7.0 build 9254 (VS.NET Beta 2) -- and perhaps Visual Studio 6.0 SP5 as well; I was unable to determine which copy of <winnt.h> takes precedence -- the compilation of "strtoll.c" and "strtoull.c" generate multiple errors when LONGLONG gets #defined, preventing <winnt.h> from correctly typedef'ing it. This causes the rest of <winnt.h> to be mis-interpreted and the build fails. Changing each occurrence of LONGLONG in "strtoll.c", "strtoull.c", and "strto.c" to SQL_LONGLONG allows the build to complete succesfully. -- Edit bug report at: http://bugs.php.net/?id=13504&edit=1

« previous php.dev (#66961) next »