comparison libmpdvdkit2/common.h @ 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 880739620241
comparison
equal deleted inserted replaced
16713:117708385e35 16714:2ab52c9b72b9
1 /***************************************************************************** 1 /*****************************************************************************
2 * common.h: common definitions 2 * common.h: common definitions
3 * Collection of useful common types and macros definitions 3 * Collection of useful common types and macros definitions
4 ***************************************************************************** 4 *****************************************************************************
5 * Copyright (C) 1998, 1999, 2000 VideoLAN 5 * Copyright (C) 1998, 1999, 2000 VideoLAN
6 *
7 * Modified for use with MPlayer, changes contained in libdvdcss_changes.diff.
8 * detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/
9 * $Id$ 6 * $Id$
10 * 7 *
11 * Authors: Samuel Hocevar <sam@via.ecp.fr> 8 * Authors: Samuel Hocevar <sam@via.ecp.fr>
12 * Vincent Seguin <seguin@via.ecp.fr> 9 * Vincent Seguin <seguin@via.ecp.fr>
13 * Gildas Bazin <gbazin@netcourrier.com> 10 * Gildas Bazin <gbazin@netcourrier.com>
28 *****************************************************************************/ 25 *****************************************************************************/
29 26
30 /***************************************************************************** 27 /*****************************************************************************
31 * Basic types definitions 28 * Basic types definitions
32 *****************************************************************************/ 29 *****************************************************************************/
33 #include <inttypes.h> 30 #if defined( HAVE_STDINT_H )
34 31 # include <stdint.h>
35 #ifdef __CYGWIN__ 32 #elif defined( HAVE_INTTYPES_H )
36 #define SYS_CYGWIN 33 # include <inttypes.h>
34 #elif defined( SYS_CYGWIN )
35 # include <sys/types.h>
36 /* Cygwin only defines half of these... */
37 typedef u_int8_t uint8_t;
38 typedef u_int32_t uint32_t;
39 #else
40 /* Fallback types (very x86-centric, sorry) */
41 typedef unsigned char uint8_t;
42 typedef signed char int8_t;
43 typedef unsigned int uint32_t;
44 typedef signed int int32_t;
37 #endif 45 #endif
38 46
39 #if defined( WIN32 ) 47 #if defined( WIN32 )
40 48
41 #ifndef PATH_MAX 49 #ifndef PATH_MAX