]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/faad2.patch
goom is patched on win32 too
[vlc] / extras / contrib / src / Patches / faad2.patch
1 --- libfaad/bits.h      2005-11-22 23:41:28.000000000 +0000
2 +++ libfaad/bits.h      2005-11-22 23:40:15.000000000 +0000
3 @@ -58,7 +58,7 @@
4  
5  #if defined (_WIN32) && !defined(_WIN32_WCE) && !defined(__MINGW32__)
6  #define BSWAP(a) __asm mov eax,a __asm bswap eax __asm mov a, eax
7 -#elif defined(LINUX) || defined(DJGPP) || defined(__MINGW32__)
8 +#elif defined(LINUX) || defined(DJGPP) || (defined(__MINGW32__) && !defined(__MINGWCE__))
9  #define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) )
10  #else
11  #define BSWAP(a) \
12 Index: libfaad/common.h
13 ===================================================================
14 RCS file: /cvsroot/faac/faad2/libfaad/common.h,v
15 retrieving revision 1.66
16 diff -u -r1.66 common.h
17 --- libfaad/common.h    1 Feb 2005 13:23:35 -0000       1.66
18 +++ libfaad/common.h    22 Nov 2005 22:46:50 -0000
19 @@ -162,7 +162,7 @@
20  
21  /* END COMPILE TIME DEFINITIONS */
22  
23 -#if defined(_WIN32) && !defined(__MINGW32__)
24 +#if defined(_WIN32) && !defined(__MINGW32__) && !defined(__MINGWCE__)
25  
26  #include <stdlib.h>
27  
28 @@ -309,8 +309,11 @@
29    }
30  
31  
32 -  #if defined(_WIN32) && !defined(__MINGW32__)
33 +  #if defined(__MINGWCE__)
34 +  #elif defined(__MINGW32__) || defined(__APPLE__)
35      #define HAS_LRINTF
36 +  #elif defined(_WIN32)
37 +    #define HAS_LRINTF
38      static INLINE int lrintf(float f)
39      {
40          int i;