shithub: libdvdcss

Download patch

ref: 146085608dd425ebe98c19d4fa1d8d734ceae26a
parent: 0210469b0eb21bf8dc1f71ba0106c1b55f0fcaa8
author: Diego Biurrun <diego@biurrun.de>
date: Fri Nov 7 16:53:34 EST 2014

Drop fallback definitions for POSIX integer types.

All relevant toolchains support POSIX integer types now.

--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@
     Windows NT 4.0 SP4 with IE 5.0 is now required.
   * Replace BeOS support by Haiku support.
   * dvdcss_error() now returns "const char *" instad of "char *".
+  * Drop support for MSVC versions before 2010.
   * Miscellaneous cleanups to code, documentation, build system.
 
 
--- a/msvc/config.h
+++ b/msvc/config.h
@@ -13,7 +13,6 @@
 /* #undef HAVE_LINUX_DVD_STRUCT */
 #define HAVE_MEMORY_H 1
 /* #undef HAVE_OPENBSD_DVD_STRUCT */
-/* #undef HAVE_STDINT_H */
 #define HAVE_STDLIB_H 1
 #define HAVE_STRINGS_H 1
 #define HAVE_STRING_H 1
--- a/src/common.h
+++ b/src/common.h
@@ -26,21 +26,6 @@
 #ifndef DVDCSS_COMMON_H
 #define DVDCSS_COMMON_H
 
-/*****************************************************************************
- * Basic types definitions
- *****************************************************************************/
-#if defined( HAVE_STDINT_H )
-#   include <stdint.h>
-#elif defined( HAVE_INTTYPES_H )
-#   include <inttypes.h>
-#else
-    /* Fallback types (very x86-centric, sorry) */
-    typedef unsigned char       uint8_t;
-    typedef signed char         int8_t;
-    typedef unsigned int        uint32_t;
-    typedef signed int          int32_t;
-#endif
-
 #if defined( WIN32 )
 #   include <io.h>                                             /* _lseeki64 */
 
--- a/src/css.h
+++ b/src/css.h
@@ -29,7 +29,8 @@
 #ifndef DVDCSS_CSS_H
 #define DVDCSS_CSS_H
 
-#include "common.h"
+#include <stdint.h>
+
 #include "dvdcss/dvdcss.h"
 
 #define CACHE_FILENAME_LENGTH_STRING "10"
--- a/src/csstables.h
+++ b/src/csstables.h
@@ -31,7 +31,7 @@
 #ifndef DVDCSS_CSSTABLES_H
 #define DVDCSS_CSSTABLES_H
 
-#include "common.h"
+#include <stdint.h>
 
 static const uint8_t p_css_tab1[ 256 ] =
 {
--- a/src/ioctl.h
+++ b/src/ioctl.h
@@ -23,7 +23,7 @@
 #ifndef DVDCSS_IOCTL_H
 #define DVDCSS_IOCTL_H
 
-#include "common.h"
+#include <stdint.h>
 
 int ioctl_ReadCopyright     ( int, int, int * );
 int ioctl_ReadDiscKey       ( int, const int *, uint8_t * );