diff options
author | João Valverde <j@v6e.pt> | 2023-10-26 23:15:47 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2023-10-27 16:30:00 +0000 |
commit | 1a8e1b14669a9df6b12795fdf5e488a3e06db5f8 (patch) | |
tree | 761996c97c84e502b920957aca3cde56458ac662 /wsutil/CMakeLists.txt | |
parent | 0d46d9a60a89b8d2fd37c91515f3c8153b5e6b99 (diff) |
Use explicit test for Clang with compiler attributes
Clang likes to pretend to be other compilers but does not implement
the full range of pragmas other compilers have. Make Clang
always use __attribute__, it should be better supported than
the alternatives, for example with clang-cl.
Do not use __GNUC__ to select Clang, it does not work with
clang-cl. Test explicitly for __clang__ instead.
Fixes #19385.
Diffstat (limited to 'wsutil/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions