From:             [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to