Skip to content

Commit

Permalink
fix(build): remove <threads.h> dependency for Windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Apr 29, 2024
1 parent 35b19b0 commit 7960e19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include <stdarg.h>
#include <stdio.h>
#include <threads.h>
#include <time.h>

enum { DmGlob_logBufferSize = 4096 };
Expand All @@ -14,7 +13,7 @@ static void DmInt_defaultLogger(void* ctx, DmLogLevel lvl, char const* msg);
static DmLogLevel DmGlob_logLevel = DmLogLevel_INFO;
static DmLogHandler* DmGlob_logCallback = NULL;
static void* DmGlob_logContext = NULL;
static thread_local char DmGlob_logBuffer[DmGlob_logBufferSize];
static char DmGlob_logBuffer[DmGlob_logBufferSize];

void Dm_setLogger(DmLogLevel lvl, DmLogHandler* log, void* ctx) {
DmGlob_logCallback = log;
Expand Down

0 comments on commit 7960e19

Please sign in to comment.