web: revert to per-file include checks

minimal & single-source builds should coexist yet again
This commit is contained in:
Maxim Prokhorov
2023-04-13 19:10:47 +03:00
parent 7c5e8e3f8b
commit b64e7f91c1
16 changed files with 309 additions and 80 deletions

View File

@@ -20,7 +20,10 @@ Copyright (C) 2019-2021 by Maxim Prokhorov <prokhorov dot max at outlook dot com
#include "mqtt.h"
#include "relay.h"
#include "system.h"
#if WEB_SUPPORT
#include "ws.h"
#endif
#include "mcp23s08_pin.h"
@@ -997,7 +1000,6 @@ void _buttonRelayAction(size_t id, ButtonAction action) {
// -----------------------------------------------------------------------------
#if WEB_SUPPORT
namespace {
void _buttonWebSocketOnVisible(JsonObject& root) {
@@ -1015,7 +1017,6 @@ bool _buttonWebSocketOnKeyCheck(espurna::StringView key, const JsonVariant&) {
}
} // namespace
#endif // WEB_SUPPORT
//------------------------------------------------------------------------------