diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-05-17 10:23:55 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-05-18 09:14:18 -0700 |
commit | 56dcb3b49643216e25863af5d18883396654f840 (patch) | |
tree | 31c5044562f6d684df654789248cd241f7d75a85 /src/corelib/global | |
parent | 042bab072a65f2f3054531ec4f7eb28afbe38e78 (diff) |
qglobal.h: #include <stdbool.h> in C mode
It's C99 and we require C11.
Change-Id: Ieb9a2aa1ea914b1b956bfffd16eff4556b99f976
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.h | 1 | ||||
-rw-r--r-- | src/corelib/global/qsimd_p.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 435e8a44e5..4b85b4af7d 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -13,6 +13,7 @@ #endif #ifndef __ASSEMBLER__ # include <assert.h> +# include <stdbool.h> # include <stddef.h> #endif diff --git a/src/corelib/global/qsimd_p.h b/src/corelib/global/qsimd_p.h index 6aafe3beba..5df2faf4e4 100644 --- a/src/corelib/global/qsimd_p.h +++ b/src/corelib/global/qsimd_p.h @@ -330,7 +330,6 @@ static constexpr auto memory_order_relaxed = std::memory_order_relaxed; extern "C" { #else # include <stdatomic.h> -# include <stdbool.h> # define Q_ATOMIC(T) _Atomic(T) #endif |