OSDN Git Service

This patch adds mingw32 cross-compilation support to HandBrake trunk to
[handbrake-jp/handbrake-jp-git.git] / contrib / faad2 / P00-mingw-types.patch
1 diff -Naur faad2.orig/common/mp4ff/mp4ff_int_types.h faad2/common/mp4ff/mp4ff_int_types.h
2 --- faad2.orig/common/mp4ff/mp4ff_int_types.h   2005-02-01 08:15:55.000000000 -0500
3 +++ faad2/common/mp4ff/mp4ff_int_types.h        2008-10-07 16:43:06.000000000 -0400
4 @@ -1,7 +1,7 @@
5  #ifndef _MP4FF_INT_TYPES_H_
6  #define _MP4FF_INT_TYPES_H_
7  
8 -#if defined (_WIN32)
9 +#if defined(_WIN32) && !defined(__MINGW32__)
10  
11  typedef char int8_t;
12  typedef unsigned char uint8_t;
13 diff -Naur faad2.orig/frontend/main.c faad2/frontend/main.c
14 --- faad2.orig/frontend/main.c  2007-11-01 08:33:29.000000000 -0400
15 +++ faad2/frontend/main.c       2008-10-07 16:55:49.000000000 -0400
16 @@ -31,7 +31,9 @@
17  #ifdef _WIN32
18  #define WIN32_LEAN_AND_MEAN
19  #include <windows.h>
20 +#ifndef __MINGW32__
21  #define off_t __int64
22 +#endif
23  #else
24  #include <time.h>
25  #endif