Skip to content

Commit b00ac79

Browse files
committed
linux/windows build
1 parent 1109398 commit b00ac79

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

jsrc/mt.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// jtpthread_mutex*: mutex implementation for macos/ios/..
22
// see mt.c
33

4+
#if PYXES
45
#ifndef __APPLE__
6+
#include <pthread.h>
57
typedef pthread_mutex_t jtpthread_mutex_t;
68
static inline void jtpthread_mutex_init(jtpthread_mutex_t *m,B recursive){
79
if(likely(!recursive)){pthread_mutex_init(m,0);}
@@ -82,3 +84,4 @@ C jtpthread_mutex_unlock(jtpthread_mutex_t*,I self); //0 or error code
8284

8385
//note: self must be non-zero
8486
#endif //__APPLE__
87+
#endif //PYXES

0 commit comments

Comments
 (0)