Skip to content

Commit 351b3dd

Browse files
committed
define pthread_t in logger.c for WINDOWS
1 parent 14fa954 commit 351b3dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/utils/logger.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
#include "port/pthread-win32.h"
2424
#endif
2525

26+
#ifdef WIN32
27+
typedef struct win32_pthread *pthread_t;
28+
typedef int pthread_attr_t;
29+
#define PTHREAD_MUTEX_INITIALIZER NULL //{ NULL, 0 }
30+
#define PTHREAD_ONCE_INIT false
31+
32+
int pthread_create(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine) (void *), void *arg);
33+
int pthread_join(pthread_t th, void **thread_return);
34+
#endif
35+
2636
/* Logger parameters */
2737

2838
int log_level_console = LOG_NONE;

0 commit comments

Comments
 (0)