[libdvdcss-devel] Drop fallback definitions for POSIX integer types.
Diego Biurrun
git at videolan.org
Fri Nov 14 16:45:57 CET 2014
libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Nov 7 21:53:34 2014 +0100| [146085608dd425ebe98c19d4fa1d8d734ceae26a] | committer: Diego Biurrun
Drop fallback definitions for POSIX integer types.
All relevant toolchains support POSIX integer types now.
> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=146085608dd425ebe98c19d4fa1d8d734ceae26a
---
NEWS | 1 +
msvc/config.h | 1 -
src/common.h | 15 ---------------
src/css.h | 3 ++-
src/csstables.h | 2 +-
src/ioctl.h | 2 +-
6 files changed, 5 insertions(+), 19 deletions(-)
diff --git a/NEWS b/NEWS
index 61c7b58..86c7780 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ Changes since 1.3.0:
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.
diff --git a/msvc/config.h b/msvc/config.h
index dc7fb62..d65d53b 100644
--- 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
diff --git a/src/common.h b/src/common.h
index 259477b..71ef811 100644
--- 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 */
diff --git a/src/css.h b/src/css.h
index 2f5dfc0..de8da24 100644
--- 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"
diff --git a/src/csstables.h b/src/csstables.h
index 6dadbb3..14c5e27 100644
--- 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 ] =
{
diff --git a/src/ioctl.h b/src/ioctl.h
index 77e8be0..ab8c42e 100644
--- 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 * );
More information about the libdvdcss-devel
mailing list