Mercurial > mplayer.hg
comparison libmpdvdkit2/common.h @ 7027:c9a4dfaa9868
importing libdvdcss 1.2.2 files
author | arpi |
---|---|
date | Fri, 16 Aug 2002 22:35:45 +0000 |
parents | |
children | f0f0f176d298 |
comparison
equal
deleted
inserted
replaced
7026:a3126e9099b4 | 7027:c9a4dfaa9868 |
---|---|
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. | |
16 * | |
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 *****************************************************************************/ | |
30 | |
31 /* Basic types definitions */ | |
32 typedef unsigned char u8; | |
33 typedef signed char s8; | |
34 typedef unsigned int u32; | |
35 typedef signed int s32; | |
36 | |
37 typedef u8 byte_t; | |
38 | |
39 #if defined( WIN32 ) | |
40 | |
41 /* several type definitions */ | |
42 # if defined( __MINGW32__ ) | |
43 # if !defined( _OFF_T_ ) | |
44 typedef long long _off_t; | |
45 typedef _off_t off_t; | |
46 # define _OFF_T_ | |
47 # else | |
48 # define off_t long long | |
49 # endif | |
50 # endif | |
51 | |
52 # if defined( _MSC_VER ) | |
53 # if !defined( _OFF_T_DEFINED ) | |
54 typedef __int64 off_t; | |
55 # define _OFF_T_DEFINED | |
56 # else | |
57 # define off_t __int64 | |
58 # endif | |
59 # define stat _stati64 | |
60 # endif | |
61 | |
62 # ifndef snprintf | |
63 # define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */ | |
64 # endif | |
65 | |
66 #endif | |
67 |