Edit report at http://bugs.php.net/bug.php?id=52316&edit=1

 ID:               52316
 Updated by:       paj...@php.net
 Reported by:      hendrik dot schmieder at jedox dot com
 Summary:          Macro redefinition with Visual Studio 2010
-Status:           Assigned
+Status:           Wont fix
 Type:             Bug
 Package:          Compile Warning
 Operating System: Windows
 PHP Version:      5.2.13
 Assigned To:      pajoye

 New Comment:

5.2 never worked with recent compilers. We do not support them either.



5.3 supports both VC6 and more recent compilers (we use VC9 and test
with VC10). Next major version will support only one (be 5.3 or 6.0).



5.2.14 is in RC phase (last one) and only very critical changes can be
applied.


Previous Comments:
------------------------------------------------------------------------
[2010-07-13 10:06:53] hendrik dot schmieder at jedox dot com

There was never a problem compiling php extensions with VS2003 and
VS2005 and php version < 5.3.

For PHP we use the supplied binaries.



Why is it so difficult to made the proposed change.

This can be done in less than one minute.

Just for the upcoming 5.2.14 version.

------------------------------------------------------------------------
[2010-07-13 09:38:33] paj...@php.net

Let me rephrase: 5.2 supports only VC6.



That means you can try with 5.3 (which should be fixed).

------------------------------------------------------------------------
[2010-07-13 09:36:46] hendrik dot schmieder at jedox dot com

I speak about 5.2.x and in 5.2.14RC2 it is still not fixed.

------------------------------------------------------------------------
[2010-07-12 16:29:20] paj...@php.net

Is it not fixed already in 5.3?

------------------------------------------------------------------------
[2010-07-12 16:19:21] hendrik dot schmieder at jedox dot com

Description:
------------
With Visual Studio 2010 you get the warning.



...\tsrm\readdir.h(10): warning C4005: '_WIN32_WINNT' : macro
redefinition

          C:\Programme\Microsoft
SDKs\Windows\v7.0A\include\sdkddkver.h(197) : see previous definition of
'_WIN32_WINNT'







Changing in readdir.h



#define _WIN32_WINNT 0x0400



to



#ifndef _WIN32_WINNT

#define _WIN32_WINNT 0x0400

#endif



would solve the problem.







------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52316&edit=1

Reply via email to