mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Fix compiling without nlohmann JSON
After commit 8955338624, 'UI/update/models/whatsnew.hpp' is included
unconditionally, even with 'ENABLE_WHATSNEW=OFF', which breaks
building OBS Studio without nlohmann JSON.
This commit is contained in:
@@ -84,6 +84,10 @@
|
||||
#include "windows.h"
|
||||
#endif
|
||||
|
||||
#ifdef WHATSNEW_ENABLED
|
||||
#include "update/models/whatsnew.hpp"
|
||||
#endif
|
||||
|
||||
#if !defined(_WIN32) && defined(WHATSNEW_ENABLED)
|
||||
#include "update/shared-update.hpp"
|
||||
#endif
|
||||
@@ -97,8 +101,6 @@
|
||||
|
||||
#include <QWindow>
|
||||
|
||||
#include "update/models/whatsnew.hpp"
|
||||
|
||||
#ifdef ENABLE_WAYLAND
|
||||
#include <obs-nix-platform.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user