From 199ad5f37141b6302d9ad1ae92c688d7afded7cb Mon Sep 17 00:00:00 2001 From: echohu Date: Tue, 9 Nov 2021 18:21:18 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91windows=20d?= =?UTF-8?q?emo=E8=87=AA=E5=8A=A8=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit i# --- demo/os/windows/easylogger/port/elog_port.c | 12 ++++++++++++ demo/os/windows/make.bat | 1 + 2 files changed, 13 insertions(+) diff --git a/demo/os/windows/easylogger/port/elog_port.c b/demo/os/windows/easylogger/port/elog_port.c index 68b43ec..8c69fe3 100644 --- a/demo/os/windows/easylogger/port/elog_port.c +++ b/demo/os/windows/easylogger/port/elog_port.c @@ -53,6 +53,18 @@ ElogErrCode elog_port_init(void) { return result; } +/** + * EasyLogger port deinitialize + * + */ +void elog_port_deinit(void) { +#ifdef ELOG_FILE_ENABLE + elog_file_deinit(); +#endif + + CloseHandle(output_lock); +} + /** * output log port interface * diff --git a/demo/os/windows/make.bat b/demo/os/windows/make.bat index 828b5a5..a901d69 100644 --- a/demo/os/windows/make.bat +++ b/demo/os/windows/make.bat @@ -1,3 +1,4 @@ +@if not exist .\out mkdir .\out gcc -I "easylogger\inc" -I "..\..\..\easylogger\inc" -O0 -g3 -Wall -c "..\..\..\easylogger\src\elog.c" -o "out\elog.o" gcc -I "easylogger\inc" -I "..\..\..\easylogger\inc" -I "..\..\..\easylogger\plugins\file" -O0 -g3 -Wall -c "easylogger\port\elog_port.c" -o "out\elog_port.o" gcc -I "easylogger\inc" -I "..\..\..\easylogger\inc" -O0 -g3 -Wall -c "..\..\..\easylogger\src\elog_utils.c" -o "out\elog_utils.o"