mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
fix(log): fix Windows refactor
This commit is contained in:
parent
cf1e4e63ef
commit
12ab8f7721
1 changed files with 3 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "Log.hpp"
|
||||
#include "storm/Thread.hpp"
|
||||
#include "storm/Error.hpp"
|
||||
#include "storm/option/Options.hpp"
|
||||
#include <bc/Memory.hpp>
|
||||
#include <bc/os/File.hpp>
|
||||
#include <bc/os/Path.hpp>
|
||||
|
|
@ -58,7 +59,7 @@ static CRITICAL_SECTION s_defaultdir_critsect;
|
|||
|
||||
#define UNLOCK(i) LeaveCriticalSection(&s_critsect[i])
|
||||
|
||||
#define DESTROYDESTROY(i) DeleteCriticalSection(&s_critsect[i])
|
||||
#define DESTROYLOCK(i) DeleteCriticalSection(&s_critsect[i])
|
||||
|
||||
#define INITDEFAULTDIRLOCK InitializeCriticalSection(&s_defaultdir_critsect)
|
||||
|
||||
|
|
@ -66,7 +67,7 @@ static CRITICAL_SECTION s_defaultdir_critsect;
|
|||
|
||||
#define UNLOCKDEFAULTDIR LeaveCriticalSection(&s_defaultdir_critsect)
|
||||
|
||||
#define DESTROYDEFAULTDIRLOCK DeleteCriticalSection(&s_default_dir_critsect)
|
||||
#define DESTROYDEFAULTDIRLOCK DeleteCriticalSection(&s_defaultdir_critsect)
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue