Mercurial > mplayer.hg
annotate libdvdcss/common.h @ 33189:e137435bb751
Attempt to support attachements without filename.
author | reimar |
---|---|
date | Fri, 22 Apr 2011 06:15:50 +0000 |
parents | cda66f57f7a5 |
children | cdbfbee5c8a9 |
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 * $Id$ | |
7 * | |
27462 | 8 * Authors: Sam Hocevar <sam@via.ecp.fr> |
20613 | 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 * | |
31098
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
22 * 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
|
23 * 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
|
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20613 | 25 *****************************************************************************/ |
26 | |
32265
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31098
diff
changeset
|
27 #ifndef DVDCSS_COMMON_H |
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31098
diff
changeset
|
28 #define DVDCSS_COMMON_H |
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31098
diff
changeset
|
29 |
20613 | 30 /***************************************************************************** |
31 * Basic types definitions | |
32 *****************************************************************************/ | |
33 #if defined( HAVE_STDINT_H ) | |
34 # include <stdint.h> | |
35 #elif defined( HAVE_INTTYPES_H ) | |
36 # include <inttypes.h> | |
37 #elif defined( SYS_CYGWIN ) | |
38 # include <sys/types.h> | |
39 /* Cygwin only defines half of these... */ | |
40 typedef u_int8_t uint8_t; | |
41 typedef u_int32_t uint32_t; | |
42 #else | |
43 /* Fallback types (very x86-centric, sorry) */ | |
44 typedef unsigned char uint8_t; | |
45 typedef signed char int8_t; | |
46 typedef unsigned int uint32_t; | |
47 typedef signed int int32_t; | |
48 #endif | |
49 | |
50 #if defined( WIN32 ) | |
51 | |
52 # ifndef PATH_MAX | |
53 # define PATH_MAX MAX_PATH | |
54 # endif | |
55 | |
56 /* several type definitions */ | |
57 # if defined( __MINGW32__ ) | |
20730
66c2f233ccff
Fix linking on Cygwin and remove nonsense lseek64 --> lseek indirection,
diego
parents:
20613
diff
changeset
|
58 # define lseek _lseeki64 |
20613 | 59 # if !defined( _OFF_T_ ) |
60 typedef long long _off_t; | |
61 typedef _off_t off_t; | |
62 # define _OFF_T_ | |
63 # else | |
64 # define off_t long long | |
65 # endif | |
66 # endif | |
67 | |
68 # if defined( _MSC_VER ) | |
20730
66c2f233ccff
Fix linking on Cygwin and remove nonsense lseek64 --> lseek indirection,
diego
parents:
20613
diff
changeset
|
69 # define lseek _lseeki64 |
20613 | 70 # if !defined( _OFF_T_DEFINED ) |
71 typedef __int64 off_t; | |
72 # define _OFF_T_DEFINED | |
73 # else | |
74 # define off_t __int64 | |
75 # endif | |
76 # define stat _stati64 | |
77 # endif | |
78 | |
79 # ifndef snprintf | |
80 # define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */ | |
81 # endif | |
82 | |
83 #endif | |
84 | |
32265
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31098
diff
changeset
|
85 #endif /* DVDCSS_COMMON_H */ |