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
parent
eeb31ad10a
commit
8779d73d8c
|
|
@ -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)
|
||||
/*!
|
||||
|
|
|
|||
Loading…
Reference in New Issue