Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qt_pch.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4/*
5 * This is a precompiled header file for use in Xcode / Mac GCC /
6 * GCC >= 3.4 / VC to greatly speed the building of Qt. It may also be
7 * of use to people developing their own project, but it is probably
8 * better to define your own header. Use of this header is currently
9 * UNSUPPORTED.
10 */
11// Qt-Security score:significant reason:default
12
13
14#if defined __cplusplus
15// for rand_s, _CRT_RAND_S must be #defined before #including stdlib.h.
16// put it at the beginning so some indirect inclusion doesn't break it
17#ifndef _CRT_RAND_S
18# define _CRT_RAND_S
19#endif
20#include <stdlib.h>
21#include <qglobal.h>
22#ifdef Q_OS_WIN
23# ifdef Q_CC_MINGW
24// <unistd.h> must be included before any other header pulls in <time.h>.
25# include <unistd.h> // Define _POSIX_THREAD_SAFE_FUNCTIONS to obtain localtime_r()
26# endif // Q_CC_MINGW
27# define _POSIX_
28# include <limits.h>
29# undef _POSIX_
30#endif // Q_OS_WIN
31#include <qcoreapplication.h>
32#include <qcoreevent.h>
33#include <qiodevice.h>
34#include <qlist.h>
35#include <qvariant.h> /* All moc generated code has this include */
36#include <qobject.h>
37#if QT_CONFIG(regularexpression)
38# include <qregularexpression.h>
39#endif
40#include <qscopedpointer.h>
41#include <qshareddata.h>
42#include <qstring.h>
43#include <qstringlist.h>
44#include <qtimer.h>
45#endif