summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qt_pch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/global/qt_pch.h')
-rw-r--r--src/corelib/global/qt_pch.h49
1 files changed, 22 insertions, 27 deletions
diff --git a/src/corelib/global/qt_pch.h b/src/corelib/global/qt_pch.h
index 207a30a5ee..3f224cda85 100644
--- a/src/corelib/global/qt_pch.h
+++ b/src/corelib/global/qt_pch.h
@@ -14,36 +14,31 @@
// for rand_s, _CRT_RAND_S must be #defined before #including stdlib.h.
// put it at the beginning so some indirect inclusion doesn't break it
#ifndef _CRT_RAND_S
-#define _CRT_RAND_S
+# define _CRT_RAND_S
#endif
#include <stdlib.h>
#include <qglobal.h>
#ifdef Q_OS_WIN
-# ifdef Q_CC_MINGW
+# ifdef Q_CC_MINGW
// <unistd.h> must be included before any other header pulls in <time.h>.
-# include <unistd.h> // Define _POSIX_THREAD_SAFE_FUNCTIONS to obtain localtime_r()
-# endif
-# define _POSIX_
-# include <limits.h>
-# undef _POSIX_
-# if defined(Q_CC_CLANG) && defined(Q_CC_MSVC)
-// See https://bugs.llvm.org/show_bug.cgi?id=41226
-# include <wchar.h>
-__declspec(selectany) auto *__wmemchr_symbol_loader_value = wmemchr(L"", L'0', 0);
-# endif
-# endif
-# include <qcoreapplication.h>
-# include <qcoreevent.h>
-# include <qiodevice.h>
-# include <qlist.h>
-# include <qvariant.h> /* All moc generated code has this include */
-# include <qobject.h>
-# if QT_CONFIG(regularexpression)
-# include <qregularexpression.h>
-# endif
-# include <qscopedpointer.h>
-# include <qshareddata.h>
-# include <qstring.h>
-# include <qstringlist.h>
-# include <qtimer.h>
+# include <unistd.h> // Define _POSIX_THREAD_SAFE_FUNCTIONS to obtain localtime_r()
+# endif // Q_CC_MINGW
+# define _POSIX_
+# include <limits.h>
+# undef _POSIX_
+#endif // Q_OS_WIN
+#include <qcoreapplication.h>
+#include <qcoreevent.h>
+#include <qiodevice.h>
+#include <qlist.h>
+#include <qvariant.h> /* All moc generated code has this include */
+#include <qobject.h>
+#if QT_CONFIG(regularexpression)
+# include <qregularexpression.h>
+#endif
+#include <qscopedpointer.h>
+#include <qshareddata.h>
+#include <qstring.h>
+#include <qstringlist.h>
+#include <qtimer.h>
#endif