mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Fix MSVC warning about #pragma GCC
Only use the pragma with GCC and Clang
This commit is contained in:
parent
d8459ef00e
commit
48602c3b5c
1 changed files with 3 additions and 1 deletions
|
@ -9,8 +9,10 @@
|
|||
LICENSE END */
|
||||
#pragma once
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
// In C++17, it is conditionally supported, but still valid for all compiler we care
|
||||
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
|
||||
# pragma GCC diagnostic ignored "-Winvalid-offsetof"
|
||||
#endif
|
||||
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue