diff options
| author | 2023-06-18 19:57:14 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:55 -0400 | |
| commit | 3f0cc544cf7184adacec22aedd81f6d796bbea31 (patch) | |
| tree | 16bb9ab8dc1b20fe4767a6f0bf94954f8cfad7d6 /src/common/settings.cpp | |
| parent | settings_setting: Fix MSVC error (diff) | |
| download | yuzu-3f0cc544cf7184adacec22aedd81f6d796bbea31.tar.gz yuzu-3f0cc544cf7184adacec22aedd81f6d796bbea31.tar.xz yuzu-3f0cc544cf7184adacec22aedd81f6d796bbea31.zip | |
common,yuzu-qt: Avoid explicit instantiation on old clang
Clang versions < 15 have compile issues with explicit instantiation.
Disable it for these versions.
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index a1cc76a38..f4eb2d2fb 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | namespace Settings { | 26 | namespace Settings { |
| 27 | 27 | ||
| 28 | #ifndef _CANNOT_EXPLICITLY_INSTANTIATE | ||
| 28 | #define SETTING(TYPE, RANGED) template class Setting<TYPE, RANGED> | 29 | #define SETTING(TYPE, RANGED) template class Setting<TYPE, RANGED> |
| 29 | #define SWITCHABLE(TYPE, RANGED) template class SwitchableSetting<TYPE, RANGED> | 30 | #define SWITCHABLE(TYPE, RANGED) template class SwitchableSetting<TYPE, RANGED> |
| 30 | 31 | ||
| @@ -61,6 +62,7 @@ SWITCHABLE(u8, true); | |||
| 61 | 62 | ||
| 62 | #undef SETTING | 63 | #undef SETTING |
| 63 | #undef SWITCHABLE | 64 | #undef SWITCHABLE |
| 65 | #endif | ||
| 64 | 66 | ||
| 65 | Values values; | 67 | Values values; |
| 66 | 68 | ||