Cross compile for Linux, MacOS and Windows on CI (#2665)
This commit is contained in:
1 parent
193f432e08
commit
ce3701fe52
3 files changed
+138
-47
No files matched your search
@@ -222,6 +222,7 @@ enum {
|
||||
|
||||
#include "jv_thread.h"
|
||||
#ifdef WIN32
|
||||
#ifndef __MINGW32__
|
||||
/* Copied from Heimdal: thread-specific keys; see lib/base/dll.c in Heimdal */
|
||||
|
||||
/*
|
||||
@@ -486,6 +487,9 @@ pthread_getspecific(pthread_key_t key)
|
||||
#else
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
#else
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
static pthread_key_t dec_ctx_key;
|
||||
static pthread_key_t dec_ctx_dbl_key;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define JV_THREAD_H
|
||||
|
||||
#ifdef WIN32
|
||||
#ifndef __MINGW32__
|
||||
#include <windows.h>
|
||||
#include <winnt.h>
|
||||
#include <errno.h>
|
||||
@@ -69,4 +70,7 @@ void *pthread_getspecific(pthread_key_t);
|
||||
#else
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
#else
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
#endif /* JV_THREAD_H */
|
||||
Reference in new issue
Block a user