diff options
Diffstat (limited to 'src/common/settings.h')
| -rw-r--r-- | src/common/settings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index e510036b4..35fa4cf3d 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -45,6 +45,7 @@ struct ResolutionScalingInfo { | |||
| 45 | } | 45 | } |
| 46 | }; | 46 | }; |
| 47 | 47 | ||
| 48 | #ifndef _CANNOT_EXPLICITLY_INSTANTIATE | ||
| 48 | // Instantiate the classes elsewhere (settings.cpp) to reduce compiler/linker work | 49 | // Instantiate the classes elsewhere (settings.cpp) to reduce compiler/linker work |
| 49 | #define SETTING(TYPE, RANGED) extern template class Setting<TYPE, RANGED> | 50 | #define SETTING(TYPE, RANGED) extern template class Setting<TYPE, RANGED> |
| 50 | #define SWITCHABLE(TYPE, RANGED) extern template class SwitchableSetting<TYPE, RANGED> | 51 | #define SWITCHABLE(TYPE, RANGED) extern template class SwitchableSetting<TYPE, RANGED> |
| @@ -84,6 +85,7 @@ SWITCHABLE(u8, true); | |||
| 84 | 85 | ||
| 85 | #undef SETTING | 86 | #undef SETTING |
| 86 | #undef SWITCHABLE | 87 | #undef SWITCHABLE |
| 88 | #endif | ||
| 87 | 89 | ||
| 88 | /** | 90 | /** |
| 89 | * The InputSetting class allows for getting a reference to either the global or custom members. | 91 | * The InputSetting class allows for getting a reference to either the global or custom members. |