]> git.sesse.net Git - vlc/commitdiff
threads: remove legacy #includes
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 11 Jan 2010 16:44:02 +0000 (18:44 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 11 Jan 2010 17:08:38 +0000 (19:08 +0200)
include/vlc_threads.h
src/misc/cpu.c
src/misc/w32thread.c

index 9469bb29b93796af775fdf9e2d39f4d909e0bf76..da02ff8234f7b707cb9da710b5799eb4152da2bf 100644 (file)
  */
 
 #if defined( UNDER_CE )
-#   include <errno.h>                                           /* WinCE API */
 #elif defined( WIN32 )
 #   include <process.h>                                         /* Win32 API */
-#   include <errno.h>
 
 #else                                         /* pthreads (like Linux & BSD) */
 #   define LIBVLC_USE_PTHREAD 1
 #   define LIBVLC_USE_PTHREAD_CANCEL 1
 #   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 <pthread.h>
 #   include <semaphore.h>
-#   include <time.h>
 
 #endif
 
index d1b93249027eff250c47d2c03ce57aa45b552ef1..777b13a02d53a7a00e30a2a397396dc7483123c7 100644 (file)
@@ -37,6 +37,8 @@
 #ifndef WIN32
 #include <unistd.h>
 #include <sys/wait.h>
+#else
+#include <errno.h>
 #endif
 
 #include "libvlc.h"
index c712ca845b5c2c5a7354bb3738a5b2984da44951..234ef8becbef3b9f06a1ecbdeb35f7024df9fe91 100644 (file)
@@ -36,6 +36,7 @@
 #include <stdarg.h>
 #include <assert.h>
 #include <limits.h>
+#include <errno.h>
 #ifdef UNDER_CE
 # include <mmsystem.h>
 #endif