nativelib - Compilation fixes
authorJohn Hodge <[email protected]>
Fri, 1 Feb 2013 04:54:19 +0000 (12:54 +0800)
committerJohn Hodge <[email protected]>
Fri, 1 Feb 2013 04:54:19 +0000 (12:54 +0800)
Tools/nativelib/include/threads_int.h
Tools/nativelib/threads_int.c

index 3e85232..1b4ddac 100644 (file)
@@ -10,7 +10,9 @@
 
 #include <shortlock.h>
 
+#ifndef _THREADS_H_
 typedef struct sThread tThread;
+#endif
 
 #define THREAD_EVENT_RWLOCK    (1 << 8)
 
index 3b7b08a..324b952 100644 (file)
@@ -14,7 +14,6 @@
 #include <shortlock.h>
 
 // === TYPES ===
-typedef struct sThread tThread;
 struct sThreadIntMutex { int lock; };
 struct sThreadIntSem { int val; };
 

UCC git Repository :: git.ucc.asn.au