summaryrefslogtreecommitdiff
path: root/implement.h
diff options
context:
space:
mode:
Diffstat (limited to 'implement.h')
-rw-r--r--implement.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/implement.h b/implement.h
index 9518f9e..0df0e4c 100644
--- a/implement.h
+++ b/implement.h
@@ -119,15 +119,15 @@ struct pthread_attr_t_ {
* ====================
*/
+struct sem_t_ {
#ifdef NEED_SEM
-typedef struct {
unsigned int value;
CRITICAL_SECTION sem_lock_cs;
HANDLE event;
-} sem_t_;
#else /* NEED_SEM */
-typedef HANDLE sem_t_;
+ HANDLE sem;
#endif /* NEED_SEM */
+};
#define PTW32_OBJECT_AUTO_INIT ((void *) -1)
#define PTW32_OBJECT_INVALID NULL