Преглед изворни кода

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)
 #if !defined(HL_THREADS)
 
 
 struct _hl_mutex {
 struct _hl_mutex {
+	void (*free)( hl_mutex * );
 	void *_unused;
 	void *_unused;
 };
 };
 
 
 struct _hl_tls {
 struct _hl_tls {
+	void (*free)( hl_mutex * );
 	void *value;
 	void *value;
 };
 };
 
 
@@ -229,7 +231,7 @@ struct _hl_deque {
 #endif
 #endif
 };
 };
 
 
-#if !defined(HL_WIN)
+#if !defined(HL_THREADS)
 #	define LOCK(l)
 #	define LOCK(l)
 #	define UNLOCK(l)
 #	define UNLOCK(l)
 #	define SIGNAL(l)
 #	define SIGNAL(l)