Put #ifdef around Windows-only function

Only on Windows do we use wchar_t messages.

Change-Id: I9672371aa001effc755b32f9d7c83ada8464394f
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
bb10
Thiago Macieira 2013-01-28 20:16:05 -08:00 committed by The Qt Project
parent eeb31ad10a
commit 8779d73d8c
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,7 @@ static bool isFatal(QtMsgType msgType)
extern bool usingWinMain;
#endif
#ifdef Q_OS_WIN
static inline void convert_to_wchar_t_elided(wchar_t *d, size_t space, const char *s) Q_DECL_NOEXCEPT
{
size_t len = qstrlen(s);
@ -128,6 +129,7 @@ static inline void convert_to_wchar_t_elided(wchar_t *d, size_t space, const cha
*d++ = *s++;
*d++ = 0;
}
#endif
#if !defined(QT_NO_EXCEPTIONS)
/*!