Commit 3ea9fb9c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

threads: remove legacy #includes

parent 416b9750
...@@ -35,21 +35,17 @@ ...@@ -35,21 +35,17 @@
*/ */
#if defined( UNDER_CE ) #if defined( UNDER_CE )
# include <errno.h> /* WinCE API */
#elif defined( WIN32 ) #elif defined( WIN32 )
# include <process.h> /* Win32 API */ # include <process.h> /* Win32 API */
# include <errno.h>
#else /* pthreads (like Linux & BSD) */ #else /* pthreads (like Linux & BSD) */
# define LIBVLC_USE_PTHREAD 1 # define LIBVLC_USE_PTHREAD 1
# define LIBVLC_USE_PTHREAD_CANCEL 1 # define LIBVLC_USE_PTHREAD_CANCEL 1
# define _APPLE_C_SOURCE 1 /* Proper pthread semantics on OSX */ # define _APPLE_C_SOURCE 1 /* Proper pthread semantics on OSX */
# include <stdlib.h> /* lldiv_t definition (only in C99) */
# include <unistd.h> /* _POSIX_SPIN_LOCKS */ # include <unistd.h> /* _POSIX_SPIN_LOCKS */
# include <pthread.h> # include <pthread.h>
# include <semaphore.h> # include <semaphore.h>
# include <time.h>
#endif #endif
......
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
#ifndef WIN32 #ifndef WIN32
#include <unistd.h> #include <unistd.h>
#include <sys/wait.h> #include <sys/wait.h>
#else
#include <errno.h>
#endif #endif
#include "libvlc.h" #include "libvlc.h"
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <assert.h> #include <assert.h>
#include <limits.h> #include <limits.h>
#include <errno.h>
#ifdef UNDER_CE #ifdef UNDER_CE
# include <mmsystem.h> # include <mmsystem.h>
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment