Bug #52316 [Asn->Fbk]: Macro redefinition with Visual Studio 2010

From: Date: Tue, 13 Jul 2010 07:38:33 +0000
Subject: Bug #52316 [Asn->Fbk]: Macro redefinition with Visual Studio 2010
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-152351@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52316&edit=1

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

 New Comment:

Let me rephrase: 5.2 supports only VC6.

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


Previous Comments:
------------------------------------------------------------------------
[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] pajoye@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


Thread (8 messages)

« previous php.bugs (#152351) next »