Mercurial > mplayer.hg
annotate libdvdcss/common.h @ 36402:2c9356ac0d01
af_volume: optimize for common case where all channels
have same volume.
author | reimar |
---|---|
date | Tue, 29 Oct 2013 19:24:16 +0000 |
parents | 691431d2289e |
children |
rev | line source |
---|---|
20613 | 1 /***************************************************************************** |
2 * common.h: common definitions | |
3 * Collection of useful common types and macros definitions | |
4 ***************************************************************************** | |
5 * Copyright (C) 1998, 1999, 2000 VideoLAN | |
6 * | |
27462 | 7 * Authors: Sam Hocevar <sam@via.ecp.fr> |
20613 | 8 * Vincent Seguin <seguin@via.ecp.fr> |
9 * Gildas Bazin <gbazin@netcourrier.com> | |
10 * | |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; either version 2 of the License, or | |
14 * (at your option) any later version. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
31098
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
21 * You should have received a copy of the GNU General Public License along |
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
22 * with libdvdcss; if not, write to the Free Software Foundation, Inc., |
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20613 | 24 *****************************************************************************/ |
25 | |
32265
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31098
diff
changeset
|
26 #ifndef DVDCSS_COMMON_H |
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31098
diff
changeset
|
27 #define DVDCSS_COMMON_H |
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31098
diff
changeset
|
28 |
20613 | 29 /***************************************************************************** |
30 * Basic types definitions | |
31 *****************************************************************************/ | |
32 #if defined( HAVE_STDINT_H ) | |
33 # include <stdint.h> | |
34 #elif defined( HAVE_INTTYPES_H ) | |
35 # include <inttypes.h> | |
36 #else | |
37 /* Fallback types (very x86-centric, sorry) */ | |
38 typedef unsigned char uint8_t; | |
39 typedef signed char int8_t; | |
40 typedef unsigned int uint32_t; | |
41 typedef signed int int32_t; | |
42 #endif | |
43 | |
44 #if defined( WIN32 ) | |
35952 | 45 # include <io.h> /* _lseeki64 */ |
20613 | 46 |
47 # ifndef PATH_MAX | |
48 # define PATH_MAX MAX_PATH | |
49 # endif | |
50 | |
51 /* several type definitions */ | |
52 # if defined( __MINGW32__ ) | |
20730
66c2f233ccff
Fix linking on Cygwin and remove nonsense lseek64 --> lseek indirection,
diego
parents:
20613
diff
changeset
|
53 # define lseek _lseeki64 |
20613 | 54 # if !defined( _OFF_T_ ) |
55 typedef long long _off_t; | |
56 typedef _off_t off_t; | |
57 # define _OFF_T_ | |
58 # else | |
59 # define off_t long long | |
60 # endif | |
61 # endif | |
62 | |
63 # if defined( _MSC_VER ) | |
20730
66c2f233ccff
Fix linking on Cygwin and remove nonsense lseek64 --> lseek indirection,
diego
parents:
20613
diff
changeset
|
64 # define lseek _lseeki64 |
20613 | 65 # if !defined( _OFF_T_DEFINED ) |
66 typedef __int64 off_t; | |
67 # define _OFF_T_DEFINED | |
68 # else | |
69 # define off_t __int64 | |
70 # endif | |
71 # define stat _stati64 | |
35952 | 72 # define snprintf _snprintf |
20613 | 73 # endif |
74 | |
75 #endif | |
76 | |
32265
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31098
diff
changeset
|
77 #endif /* DVDCSS_COMMON_H */ |