* include/vlc_threads_funcs.h: add define for ETIMEDOUT on WIN32 and remove return 0 from void function vlc_spin_destroy

This commit is contained in:
Dennis van Amerongen 2008-02-17 23:53:53 +00:00
parent 66a7641684
commit b6a1a9511f
1 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,10 @@
#ifndef _VLC_THREADFUNCS_H_
#define _VLC_THREADFUNCS_H_
#if defined( WIN32 ) && !defined ETIMEDOUT
# define ETIMEDOUT 10060 /* This is the value in winsock.h. */
#endif
/*****************************************************************************
* Function definitions
*****************************************************************************/
@ -615,7 +619,6 @@ static inline void vlc_spin_unlock (vlc_spinlock_t *spin)
static inline void vlc_spin_destroy (vlc_spinlock_t *spin)
{
DeleteCriticalSection(spin);
return 0;
}