X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a89c31bb34c62dde4391e7fb88846bbc1d147e9c..8606ee50771053a38554c7d38b765a8142a1a96c:/include/wx/wxcrtbase.h diff --git a/include/wx/wxcrtbase.h b/include/wx/wxcrtbase.h index dd6428c322..d9ee66261a 100644 --- a/include/wx/wxcrtbase.h +++ b/include/wx/wxcrtbase.h @@ -664,8 +664,11 @@ WXDLLIMPEXP_BASE wchar_t * wxCRT_GetenvW(const wchar_t *name); _xpg5_wcsftime(wchar_t *, size_t, const wchar_t *, const struct tm * ); #define wxCRT_StrftimeW _xpg5_wcsftime #else - #ifndef __WXPALMOS__ - // assume it's always available, this does seem to be the case for now + // Assume it's always available under non-Unix systems with the exception + // of Palm OS, this does seem to be the case for now. And under Unix we + // trust configure to detect it (except for SGI special case above). + #if defined(HAVE_WCSFTIME) || \ + !(defined(__UNIX__) || defined(__WXPALMOS__)) #define wxCRT_StrftimeW wcsftime #endif /* ! __WXPALMOS__ */ #endif