diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-09-27 10:19:53 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-10-06 09:27:11 +0200 |
commit | e4cbf7529ba4bcfff47c44b0d026ecb356004c8c (patch) | |
tree | a1c3a3fb245220594acbf15f7c9ec7344bb03db7 /libavcodec/w32pthreads.h | |
parent | 76f644d9f7f511a4e8dbc4938d40c43b49383c22 (diff) | |
download | ffmpeg-e4cbf7529ba4bcfff47c44b0d026ecb356004c8c.tar.gz |
Give all anonymously typedeffed structs in headers a name
Anonymous structs cannot be forward declared and have no benefit.
Diffstat (limited to 'libavcodec/w32pthreads.h')
-rw-r--r-- | libavcodec/w32pthreads.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/w32pthreads.h b/libavcodec/w32pthreads.h index 8489f715db..91e7353fbb 100644 --- a/libavcodec/w32pthreads.h +++ b/libavcodec/w32pthreads.h @@ -42,7 +42,7 @@ #include "libavutil/internal.h" #include "libavutil/mem.h" -typedef struct { +typedef struct pthread_t { void *handle; void *(*func)(void* arg); void *arg; @@ -56,7 +56,7 @@ typedef CRITICAL_SECTION pthread_mutex_t; /* This is the CONDITIONAL_VARIABLE typedef for using Window's native * conditional variables on kernels 6.0+. * MinGW does not currently have this typedef. */ -typedef struct { +typedef struct pthread_cond_t { void *ptr; } pthread_cond_t; @@ -117,7 +117,7 @@ static inline int pthread_mutex_unlock(pthread_mutex_t *m) /* for pre-Windows 6.0 platforms we need to define and use our own condition * variable and api */ -typedef struct { +typedef struct win32_cond_t { pthread_mutex_t mtx_broadcast; pthread_mutex_t mtx_waiter_count; volatile int waiter_count; |