diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/instance.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/instance.cpp b/src/net/instance.cpp index c3af86c..6982f64 100644 --- a/src/net/instance.cpp +++ b/src/net/instance.cpp @@ -1,5 +1,7 @@ #include "instance.h" +#ifdef MASTODONPP_BUILD #include "mastodon_instance.h" +#endif #include "src/settings_interface.h" Instance* Instance::create_instance() { @@ -8,8 +10,10 @@ Instance* Instance::create_instance() { Instance* Instance::create_instance(AppSettingsTypes::InstanceType type) { switch (type) { +#ifdef MASTODONPP_BUILD case AppSettingsTypes::InstanceType::MASTODON: return new MastodonInstance; +#endif default: return nullptr; } |