Commit a918cb9b authored by Diego Biurrun's avatar Diego Biurrun
Browse files

Unconditionally use limits.h.

The header is available in all toolchains we care about.
parent c500fe52
...@@ -52,7 +52,7 @@ AC_C_CONST ...@@ -52,7 +52,7 @@ AC_C_CONST
AC_C_INLINE AC_C_INLINE
AC_TYPE_SIZE_T AC_TYPE_SIZE_T
AC_CHECK_HEADERS([unistd.h sys/param.h sys/uio.h limits.h pwd.h]dnl AC_CHECK_HEADERS([unistd.h sys/param.h sys/uio.h pwd.h]dnl
[errno.h sys/types.h sys/stat.h fcntl.h io.h]) [errno.h sys/types.h sys/stat.h fcntl.h io.h])
AC_CHECK_DECL([O_BINARY], [], AC_CHECK_DECL([O_BINARY], [],
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
*****************************************************************************/ *****************************************************************************/
#include "config.h" #include "config.h"
#include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
...@@ -47,10 +48,6 @@ ...@@ -47,10 +48,6 @@
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include "dvdcss/dvdcss.h" #include "dvdcss/dvdcss.h"
#include "common.h" #include "common.h"
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
*****************************************************************************/ *****************************************************************************/
#include "config.h" #include "config.h"
#include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
...@@ -44,10 +45,6 @@ ...@@ -44,10 +45,6 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#ifdef DARWIN_DVD_IOCTL #ifdef DARWIN_DVD_IOCTL
# include <paths.h> # include <paths.h>
# include <CoreFoundation/CoreFoundation.h> # include <CoreFoundation/CoreFoundation.h>
......
...@@ -97,6 +97,7 @@ ...@@ -97,6 +97,7 @@
*/ */
#include "config.h" #include "config.h"
#include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
...@@ -115,10 +116,6 @@ ...@@ -115,10 +116,6 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#if defined(_WIN32_IE) && _WIN32_IE >= 0x500 #if defined(_WIN32_IE) && _WIN32_IE >= 0x500
# include <shlobj.h> # include <shlobj.h>
#endif #endif
......
...@@ -24,11 +24,7 @@ ...@@ -24,11 +24,7 @@
#ifndef DVDCSS_LIBDVDCSS_H #ifndef DVDCSS_LIBDVDCSS_H
#define DVDCSS_LIBDVDCSS_H #define DVDCSS_LIBDVDCSS_H
#include "config.h" #include <limits.h>
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include "dvdcss/dvdcss.h" #include "dvdcss/dvdcss.h"
#include "css.h" #include "css.h"
......
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