summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius@trolltech.com>2009-07-01 09:50:36 (GMT)
committerMarius Storm-Olsen <marius@trolltech.com>2009-07-01 09:51:27 (GMT)
commita6e32ae1c84984041107a83db9307caffbda9849 (patch)
treec27e61daf15cf5ba2b4b61971c27916a27d49852 /src/corelib/global
parenta69160c5f4ef146f5e9922161bcff9c6fed213c7 (diff)
downloadQt-a6e32ae1c84984041107a83db9307caffbda9849.zip
Qt-a6e32ae1c84984041107a83db9307caffbda9849.tar.gz
Qt-a6e32ae1c84984041107a83db9307caffbda9849.tar.bz2
Make the macros QT_WA & QT_WA_INLINE only use the unicode part
Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qglobal.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 00a9466..a522bcf 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -1420,17 +1420,9 @@ inline QT3_SUPPORT bool qt_winUnicode() { return true; }
inline QT3_SUPPORT int qWinVersion() { return QSysInfo::WindowsVersion; }
#endif
-#ifdef Q_OS_WINCE
-#define QT_WA(uni, ansi) uni
-#define QT_WA_INLINE(uni, ansi) (uni)
-#elif defined(UNICODE)
-#define QT_WA(uni, ansi) if (!(QSysInfo::windowsVersion() & QSysInfo::WV_DOS_based)) { uni } else { ansi }
+#define QT_WA(unicode, ansi) unicode
+#define QT_WA_INLINE(unicode, ansi) (unicode)
-#define QT_WA_INLINE(uni, ansi) (!(QSysInfo::windowsVersion() & QSysInfo::WV_DOS_based) ? uni : ansi)
-#else
-#define QT_WA(uni, ansi) ansi
-#define QT_WA_INLINE(uni, ansi) ansi
-#endif
#endif /* Q_WS_WIN */
#ifndef Q_OUTOFLINE_TEMPLATE