Cygwin doesn't have _wcsdup() (closes #10738)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-04-25 14:48:19 +00:00
parent b46eeeae7e
commit 4691b518df

View File

@ -183,7 +183,9 @@ WXDLLIMPEXP_BASE void *calloc( size_t num, size_t size );
#elif !(defined(__MWERKS__) && defined(__WXMAC__)) && !defined(__WXWINCE__)
#define wxCRT_StrdupA strdup
#endif
#if defined(__WINDOWS__)
// all compilers except Cygwin provide _wcsdup() under Windows
#if defined(__WINDOWS__) && !defined(__CYGWIN__)
#define wxCRT_StrdupW _wcsdup
#elif defined(HAVE_WCSDUP)
#define wxCRT_StrdupW wcsdup