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"