From: Markus Armbruster Date: Tue, 17 Feb 2004 18:05:23 +0000 (+0000) Subject: (empth_t, empth_sem_t) [_EMPTH_WIN32]: Use incomplete types, not void for X-Git-Tag: v4.2.14~190 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=e446bfd90448a25d0cbb1458d6dbb95bf3c83b0f (empth_t, empth_sem_t) [_EMPTH_WIN32]: Use incomplete types, not void for abstract data types. --- diff --git a/include/empthread.h b/include/empthread.h index 1e5709fae..217efeb59 100644 --- a/include/empthread.h +++ b/include/empthread.h @@ -102,9 +102,8 @@ typedef struct { #define EMPTH_PRINT 0x1 #define EMPTH_STACKCHECK 0x2 -typedef void empth_t; - -typedef void empth_sem_t; +typedef struct loc_Thread_t empth_t; +typedef struct loc_Sem_t void empth_sem_t; #endif diff --git a/src/lib/empthread/ntthread.c b/src/lib/empthread/ntthread.c index 3d827e4c3..d2b73fe3f 100644 --- a/src/lib/empthread/ntthread.c +++ b/src/lib/empthread/ntthread.c @@ -68,7 +68,7 @@ * The external world only gets * a void pointer to this. */ -typedef struct { +typedef struct loc_Thread_t { /* The thread name, passed in at create time. */ char szName[17]; @@ -102,7 +102,7 @@ typedef struct { * The external world only gets * a void pointer to this. */ -typedef struct { +typedef struct empth_sem_t { char szName[17];