diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-07-18 13:48:06 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2016-08-09 02:41:19 +0000 |
commit | e24f89f266cee6e2473af6f66bd78f2df3a51c83 (patch) | |
tree | 0add769a4d2d0afd5b25300d90b002476a6531df /src/dbus/qdbusconnection_p.h | |
parent | 30eecdf6d8e593027542df8e809dc2b5f33cc60e (diff) |
Fix build with clang-cl and the Intel compiler on Windows
Neither clang-cl nor the Intel compiler are able to parse the MSVC code
in a constexpr environment. For Clang, we can just use the __builtin
functions, which it does make available on Windows. For the Intel
compiler, there's no alternative, so we just don't use the _BitScanXxx
functions. It will produce slower code, though.
qalgorithms.h(587,19) : error: variables defined in a constexpr function must be initialized
qalgorithms.h(635,12) : note: non-constexpr function '__popcnt' cannot be used in a constant expression
etc.
Change-Id: I149e0540c00745fe8119fffd14627ded43807000
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/dbus/qdbusconnection_p.h')
0 files changed, 0 insertions, 0 deletions