From 8db1a709bcd173cce8301db28ca624f81b4822ab Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 17 Jan 2006 19:10:48 +0000 Subject: [PATCH] Eliminated a VC++ 8 warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/wxchar.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index ff62d28c56..0918866942 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -57,7 +57,9 @@ /* Almost all compiler have strdup(), but not quite all: CodeWarrior under Mac */ /* and VC++ for Windows CE don't provide it */ -#if !(defined(__MWERKS__) && defined(__WXMAC__)) && !defined(__WXWINCE__) +#if defined(__VISUALC__) && __VISUALC__ >= 1400 + #define wxStrdupA _strdup +#elif !(defined(__MWERKS__) && defined(__WXMAC__)) && !defined(__WXWINCE__) /* use #define, not inline wrapper, as it is tested with #ifndef below */ #define wxStrdupA strdup #endif -- 2.47.2