Mercurial > mplayer.hg
annotate libdvdcss/common.h @ 32204:0a81c931ecb5
Mark functs not used outside of the file as static, remove from header; fixes:
libvo/vesa_lvo.c:187: warning: no previous prototype for 'vlvo_draw_slice'
libvo/vesa_lvo.c:205: warning: no previous prototype for 'vlvo_draw_frame'
libvo/vesa_lvo.c:214: warning: no previous prototype for 'vlvo_flip_page'
libvo/vesa_lvo.c:275: warning: no previous prototype for 'vlvo_draw_osd'
libvo/vesa_lvo.c:312: warning: no previous prototype for 'vlvo_query_info'
author | diego |
---|---|
date | Fri, 17 Sep 2010 10:31:24 +0000 |
parents | 9e9595c779cf |
children | cda66f57f7a5 |
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 | |
27 /***************************************************************************** | |
28 * Basic types definitions | |
29 *****************************************************************************/ | |
30 #if defined( HAVE_STDINT_H ) | |
31 # include <stdint.h> | |
32 #elif defined( HAVE_INTTYPES_H ) | |
33 # include <inttypes.h> | |
34 #elif defined( SYS_CYGWIN ) | |
35 # include <sys/types.h> | |
36 /* Cygwin only defines half of these... */ | |
37 typedef u_int8_t uint8_t; | |
38 typedef u_int32_t uint32_t; | |
39 #else | |
40 /* Fallback types (very x86-centric, sorry) */ | |
41 typedef unsigned char uint8_t; | |
42 typedef signed char int8_t; | |
43 typedef unsigned int uint32_t; | |
44 typedef signed int int32_t; | |
45 #endif | |
46 | |
47 #if defined( WIN32 ) | |
48 | |
49 # ifndef PATH_MAX | |
50 # define PATH_MAX MAX_PATH | |
51 # endif | |
52 | |
53 /* several type definitions */ | |
54 # if defined( __MINGW32__ ) | |
20730
66c2f233ccff
Fix linking on Cygwin and remove nonsense lseek64 --> lseek indirection,
diego
parents:
20613
diff
changeset
|
55 # define lseek _lseeki64 |
20613 | 56 # if !defined( _OFF_T_ ) |
57 typedef long long _off_t; | |
58 typedef _off_t off_t; | |
59 # define _OFF_T_ | |
60 # else | |
61 # define off_t long long | |
62 # endif | |
63 # endif | |
64 | |
65 # if defined( _MSC_VER ) | |
20730
66c2f233ccff
Fix linking on Cygwin and remove nonsense lseek64 --> lseek indirection,
diego
parents:
20613
diff
changeset
|
66 # define lseek _lseeki64 |
20613 | 67 # if !defined( _OFF_T_DEFINED ) |
68 typedef __int64 off_t; | |
69 # define _OFF_T_DEFINED | |
70 # else | |
71 # define off_t __int64 | |
72 # endif | |
73 # define stat _stati64 | |
74 # endif | |
75 | |
76 # ifndef snprintf | |
77 # define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */ | |
78 # endif | |
79 | |
80 #endif | |
81 |