From 52cb2247fba2a17279c970218f6f11af4a6024ad Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Thu, 21 Mar 2024 09:31:44 +0800 Subject: [PATCH] add marcro define check for include file --- api/source/mk_events.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/source/mk_events.cpp b/api/source/mk_events.cpp index 52ac6e57..7970f1cd 100644 --- a/api/source/mk_events.cpp +++ b/api/source/mk_events.cpp @@ -14,7 +14,10 @@ #include "Http/HttpSession.h" #include "Rtsp/RtspSession.h" #include "Record/MP4Recorder.h" + +#ifdef ENABLE_WEBRTC #include "webrtc/WebRtcTransport.h" +#endif using namespace toolkit; using namespace mediakit;