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:
parent
c8d95005c1
commit
f83b0d93f1
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue