diff options
Diffstat (limited to 'libmpdvdkit2/common.h')
-rw-r--r-- | libmpdvdkit2/common.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/libmpdvdkit2/common.h b/libmpdvdkit2/common.h index 6d292e4590..534b0e514d 100644 --- a/libmpdvdkit2/common.h +++ b/libmpdvdkit2/common.h @@ -3,9 +3,6 @@ * Collection of useful common types and macros definitions ***************************************************************************** * Copyright (C) 1998, 1999, 2000 VideoLAN - * - * Modified for use with MPlayer, changes contained in libdvdcss_changes.diff. - * detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/ * $Id$ * * Authors: Samuel Hocevar <sam@via.ecp.fr> @@ -30,10 +27,21 @@ /***************************************************************************** * Basic types definitions *****************************************************************************/ -#include <inttypes.h> - -#ifdef __CYGWIN__ -#define SYS_CYGWIN +#if defined( HAVE_STDINT_H ) +# include <stdint.h> +#elif defined( HAVE_INTTYPES_H ) +# include <inttypes.h> +#elif defined( SYS_CYGWIN ) +# include <sys/types.h> + /* Cygwin only defines half of these... */ + typedef u_int8_t uint8_t; + typedef u_int32_t uint32_t; +#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 ) |