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 9469bb2..da02ff8 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 d1b9324..777b13a 100644 (file)
@@ -37,6 +37,8 @@
 #ifndef WIN32
 #include <unistd.h>
 #include <sys/wait.h>
+#else
+#include <errno.h>
 #endif
 
 #include "libvlc.h"
index c712ca8..234ef8b 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