diff libmpdvdkit2/libdvdcss.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 279cd50f2ba0
line wrap: on
line diff
--- a/libmpdvdkit2/libdvdcss.c	Sun Oct 09 09:53:27 2005 +0000
+++ b/libmpdvdkit2/libdvdcss.c	Sun Oct 09 10:18:24 2005 +0000
@@ -103,10 +103,26 @@
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef HAVE_SYS_PARAM_H
+#   include <sys/param.h>
+#endif
+#ifdef HAVE_PWD_H
+#   include <pwd.h>
+#endif
 #include <fcntl.h>
 #include <errno.h>
+
+#ifdef HAVE_UNISTD_H
 #   include <unistd.h>
+#endif
+
+#ifdef HAVE_LIMITS_H
 #   include <limits.h>
+#endif
+
+#ifdef HAVE_DIRECT_H
+#   include <direct.h>
+#endif
 
 #include "dvdcss.h"