Mercurial > mplayer.hg
annotate libmpdvdkit2/common.h @ 16659:f734c20de10a
Add changes from last patch (stream mapping).
author | reimar |
---|---|
date | Tue, 04 Oct 2005 16:47:38 +0000 |
parents | 0af14c5fee82 |
children | 2ab52c9b72b9 |
rev | line source |
---|---|
7027 | 1 /***************************************************************************** |
2 * common.h: common definitions | |
3 * Collection of useful common types and macros definitions | |
4 ***************************************************************************** | |
5 * Copyright (C) 1998, 1999, 2000 VideoLAN | |
16631 | 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/ | |
7027 | 9 * $Id$ |
10 * | |
11 * Authors: Samuel Hocevar <sam@via.ecp.fr> | |
12 * Vincent Seguin <seguin@via.ecp.fr> | |
13 * Gildas Bazin <gbazin@netcourrier.com> | |
14 * | |
15 * This program is free software; you can redistribute it and/or modify | |
16 * it under the terms of the GNU General Public License as published by | |
17 * the Free Software Foundation; either version 2 of the License, or | |
18 * (at your option) any later version. | |
9333
f0f0f176d298
sync with libdvdcss 1.2.5 (including u8->uint8_t and whitespace cosmetics...)
arpi
parents:
7027
diff
changeset
|
19 * |
7027 | 20 * This program is distributed in the hope that it will be useful, |
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 * GNU General Public License for more details. | |
24 * | |
25 * You should have received a copy of the GNU General Public License | |
26 * along with this program; if not, write to the Free Software | |
27 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. | |
28 *****************************************************************************/ | |
29 | |
30 /***************************************************************************** | |
31 * Basic types definitions | |
32 *****************************************************************************/ | |
9333
f0f0f176d298
sync with libdvdcss 1.2.5 (including u8->uint8_t and whitespace cosmetics...)
arpi
parents:
7027
diff
changeset
|
33 #include <inttypes.h> |
7027 | 34 |
10721
e482b16c7145
__CYGWIN__->SYS_CYGWIN define moved to the right place
arpi
parents:
10720
diff
changeset
|
35 #ifdef __CYGWIN__ |
e482b16c7145
__CYGWIN__->SYS_CYGWIN define moved to the right place
arpi
parents:
10720
diff
changeset
|
36 #define SYS_CYGWIN |
e482b16c7145
__CYGWIN__->SYS_CYGWIN define moved to the right place
arpi
parents:
10720
diff
changeset
|
37 #endif |
e482b16c7145
__CYGWIN__->SYS_CYGWIN define moved to the right place
arpi
parents:
10720
diff
changeset
|
38 |
7027 | 39 #if defined( WIN32 ) |
40 | |
10720
f23c35ce0d16
synced to libdvdcss 1.2.8 (except the DVDCSS_PATH guessing, we use our
arpi
parents:
9333
diff
changeset
|
41 #ifndef PATH_MAX |
f23c35ce0d16
synced to libdvdcss 1.2.8 (except the DVDCSS_PATH guessing, we use our
arpi
parents:
9333
diff
changeset
|
42 # define PATH_MAX MAX_PATH |
f23c35ce0d16
synced to libdvdcss 1.2.8 (except the DVDCSS_PATH guessing, we use our
arpi
parents:
9333
diff
changeset
|
43 #endif |
f23c35ce0d16
synced to libdvdcss 1.2.8 (except the DVDCSS_PATH guessing, we use our
arpi
parents:
9333
diff
changeset
|
44 |
16630 | 45 #define lseek _lseeki64 |
46 | |
7027 | 47 /* several type definitions */ |
48 # if defined( __MINGW32__ ) | |
49 # if !defined( _OFF_T_ ) | |
50 typedef long long _off_t; | |
51 typedef _off_t off_t; | |
52 # define _OFF_T_ | |
53 # else | |
54 # define off_t long long | |
55 # endif | |
56 # endif | |
57 | |
58 # if defined( _MSC_VER ) | |
59 # if !defined( _OFF_T_DEFINED ) | |
60 typedef __int64 off_t; | |
61 # define _OFF_T_DEFINED | |
62 # else | |
63 # define off_t __int64 | |
64 # endif | |
65 # define stat _stati64 | |
66 # endif | |
67 | |
68 # ifndef snprintf | |
69 # define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */ | |
70 # endif | |
71 | |
72 #endif | |
73 |