Replace QT_HAS_INCLUDE() wrapper macro with __has_include()


Using wrappers for these macros is problematic when for example passing the
-frewrite-includes flag to preprocess sources before shipping off to distcc
or Icecream. It will also start producing warnings when compilers implement
http://eel.is/c++draft/cpp.cond#7.sentence-2. See for example
https://reviews.llvm.org/D49091

See qtbase change c3bd5ffdc8a3b459f18ba6e35fca93e29f3b0ab0.

Change-Id: Ib3b39c2f47816b8a92ffcc0432322cb0d1ea7dbf
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commit3e3db25efc293a7fc543aa6d59899817b8e1411b
parent13112717ee0a49620f51078c1b8d69109e568498
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>
commit timeTue, 22 Nov 2022 11:00:47 +0000