From 83d162f9470ed20a509da3198c7ff11024d2bda3 Mon Sep 17 00:00:00 2001 From: "Ali.L" Date: Sat, 17 Feb 2024 17:51:52 +0800 Subject: [PATCH] =?UTF-8?q?elog=5Ffile:=20=E6=B7=BB=E5=8A=A0=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=AE=8F=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- easylogger/plugins/file/elog_file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/easylogger/plugins/file/elog_file.c b/easylogger/plugins/file/elog_file.c index 8327b9f..9288923 100644 --- a/easylogger/plugins/file/elog_file.c +++ b/easylogger/plugins/file/elog_file.c @@ -35,6 +35,8 @@ #include "elog_file.h" +#ifdef ELOG_FILE_ENABLE + /* initialize OK flag */ static bool init_ok = false; static FILE *fp = NULL; @@ -175,3 +177,5 @@ void elog_file_config(ElogFileCfg *cfg) elog_file_port_unlock(); } + +#endif /* ELOG_FILE_ENABLE */