1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
5 \headerfile <QtSystemDetection>
7 \title Platform-specific Macro Definitions
10 \brief The <QtSystemDetection> header file includes various
11 platfrom-specific macros.
13 The <QtSystemDetection> header file declares a range of macros (Q_OS_*)
14 that are defined for the specified platforms. For example, Q_OS_UNIX which
15 is defined for Unix-based systems.
17 The purpose of these macros is to enable programmers to add
18 platform-specific code to their application.
23 \relates <QtSystemDetection>
25 Defined on Darwin-based operating systems such as \macos, iOS, watchOS, and tvOS.
27 \note Unless you are dealing with code specific to the Darwin kernel,
28 prefer Q_OS_APPLE to refer to the family of Apple operating systems.
33 \relates <QtSystemDetection>
35 Defined on Apple operating systems such as \macos, iOS, watchOS, and tvOS.
40 \relates <QtSystemDetection>
42 Deprecated synonym for \c Q_OS_DARWIN. Do not use.
47 \relates <QtSystemDetection>
49 Deprecated synonym for \c Q_OS_MACOS. Do not use.
54 \relates <QtSystemDetection>
61 \relates <QtSystemDetection>
68 \relates <QtSystemDetection>
75 \relates <QtSystemDetection>
82 \relates <QtSystemDetection>
84 Defined on all supported versions of Windows. That is, if
85 \l Q_OS_WIN32 or \l Q_OS_WIN64 is defined.
90 \relates <QtSystemDetection>
92 This is a synonym for Q_OS_WIN.
97 \relates <QtSystemDetection>
99 Defined on 32-bit and 64-bit versions of Windows.
104 \relates <QtSystemDetection>
106 Defined on 64-bit versions of Windows.
111 \relates <QtSystemDetection>
118 \relates <QtSystemDetection>
120 Defined on Sun Solaris.
125 \relates <QtSystemDetection>
132 \relates <QtSystemDetection>
139 \relates <QtSystemDetection>
146 \relates <QtSystemDetection>
153 \relates <QtSystemDetection>
160 \relates <QtSystemDetection>
167 \relates <QtSystemDetection>
174 \relates <QtSystemDetection>
181 \relates <QtSystemDetection>
183 Defined on QNX Neutrino.
188 \relates <QtSystemDetection>
195 \relates <QtSystemDetection>
197 Defined on any BSD 4.4 system.
202 \relates <QtSystemDetection>
204 Defined on any UNIX BSD/SYSV system.
209 \relates <QtSystemDetection>
211 Defined on Web Assembly.