Browse Source

Merge pull request #693 from powerc9000/patch-2

Fix pthread_t on Macos.
gingerBill 5 years ago
parent
commit
cbfe3571ab
1 changed files with 1 additions and 5 deletions
  1. 1 5
      core/sys/unix/pthread_darwin.odin

+ 1 - 5
core/sys/unix/pthread_darwin.odin

@@ -14,11 +14,7 @@ PTHREAD_ONCE_SIZE      :: 8;
 PTHREAD_RWLOCK_SIZE    :: 192;
 PTHREAD_RWLOCKATTR_SIZE :: 16;
 
-pthread_t :: opaque struct #align 16 {
-	sig: c.long,
-	cleanup_stack: rawptr,
-	_: [PTHREAD_SIZE] c.char,
-};
+pthread_t :: opaque u64;
 
 pthread_attr_t :: opaque struct #align 16 {
 	sig: c.long,