comparison libmpdvdkit2/device.c @ 16714:2ab52c9b72b9

Replace unconditional #defines by build system trickery. This reduces our local diff considerably.
author diego
date Sun, 09 Oct 2005 10:18:24 +0000
parents 0af14c5fee82
children 0783dd397f74
comparison
equal deleted inserted replaced
16713:117708385e35 16714:2ab52c9b72b9
32 #include "config.h" 32 #include "config.h"
33 33
34 #include <stdio.h> 34 #include <stdio.h>
35 #include <stdlib.h> 35 #include <stdlib.h>
36 #include <string.h> 36 #include <string.h>
37 #ifdef HAVE_ERRNO_H
37 # include <errno.h> 38 # include <errno.h>
39 #endif
38 #include <sys/types.h> 40 #include <sys/types.h>
39 #include <sys/stat.h> 41 #include <sys/stat.h>
42 #ifdef HAVE_SYS_PARAM_H
43 # include <sys/param.h>
44 #endif
40 #include <fcntl.h> 45 #include <fcntl.h>
46
47 #ifdef HAVE_UNISTD_H
41 # include <unistd.h> 48 # include <unistd.h>
49 #endif
50
51 #ifdef HAVE_LIMITS_H
42 # include <limits.h> 52 # include <limits.h>
53 #endif
43 54
44 #if defined( WIN32 ) && !defined( SYS_CYGWIN ) 55 #if defined( WIN32 ) && !defined( SYS_CYGWIN )
45 # include <io.h> /* read() */ 56 # include <io.h> /* read() */
46 #else 57 #else
47 # include <sys/uio.h> /* struct iovec */ 58 # include <sys/uio.h> /* struct iovec */