浏览代码

fixed compilation without threads

ncannasse 7 年之前
父节点
当前提交
44a7787b16
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/std/thread.c

+ 3 - 1
src/std/thread.c

@@ -24,10 +24,12 @@
 #if !defined(HL_THREADS)
 
 struct _hl_mutex {
+	void (*free)( hl_mutex * );
 	void *_unused;
 };
 
 struct _hl_tls {
+	void (*free)( hl_mutex * );
 	void *value;
 };
 
@@ -229,7 +231,7 @@ struct _hl_deque {
 #endif
 };
 
-#if !defined(HL_WIN)
+#if !defined(HL_THREADS)
 #	define LOCK(l)
 #	define UNLOCK(l)
 #	define SIGNAL(l)