Mercurial > mplayer.hg
annotate libmpdvdkit2/common.h @ 10035:d4ecf93e236a
Remove broker reset/seek and fix ;;
author | rtognimp |
---|---|
date | Wed, 30 Apr 2003 20:17:35 +0000 |
parents | f0f0f176d298 |
children | f23c35ce0d16 |
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 | |
6 * $Id$ | |
7 * | |
8 * Authors: Samuel Hocevar <sam@via.ecp.fr> | |
9 * Vincent Seguin <seguin@via.ecp.fr> | |
10 * Gildas Bazin <gbazin@netcourrier.com> | |
11 * | |
12 * This program is free software; you can redistribute it and/or modify | |
13 * it under the terms of the GNU General Public License as published by | |
14 * the Free Software Foundation; either version 2 of the License, or | |
15 * (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
|
16 * |
7027 | 17 * This program is distributed in the hope that it will be useful, |
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 * GNU General Public License for more details. | |
21 * | |
22 * You should have received a copy of the GNU General Public License | |
23 * along with this program; if not, write to the Free Software | |
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. | |
25 *****************************************************************************/ | |
26 | |
27 /***************************************************************************** | |
28 * Basic types definitions | |
29 *****************************************************************************/ | |
9333
f0f0f176d298
sync with libdvdcss 1.2.5 (including u8->uint8_t and whitespace cosmetics...)
arpi
parents:
7027
diff
changeset
|
30 #include <inttypes.h> |
7027 | 31 |
32 #if defined( WIN32 ) | |
33 | |
34 /* several type definitions */ | |
35 # if defined( __MINGW32__ ) | |
36 # if !defined( _OFF_T_ ) | |
37 typedef long long _off_t; | |
38 typedef _off_t off_t; | |
39 # define _OFF_T_ | |
40 # else | |
41 # define off_t long long | |
42 # endif | |
43 # endif | |
44 | |
45 # if defined( _MSC_VER ) | |
46 # if !defined( _OFF_T_DEFINED ) | |
47 typedef __int64 off_t; | |
48 # define _OFF_T_DEFINED | |
49 # else | |
50 # define off_t __int64 | |
51 # endif | |
52 # define stat _stati64 | |
53 # endif | |
54 | |
55 # ifndef snprintf | |
56 # define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */ | |
57 # endif | |
58 | |
59 #endif | |
60 |