mirror of https://code.videolan.org/videolan/vlc
* 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:
parent
66a7641684
commit
b6a1a9511f
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue