openocd: avoid documentation rebuild to fix build issues
[buildroot-gz.git] / package / sdl2 / 0001-ppc.patch
blob0161103067f5c6acabdb6ef1dc3acf92f28662a3
1 Fixed bug 3466 - Can't build 2.0.5 on ppc64
3 /home/fedora/SDL2-2.0.5/src/video/SDL_blit_N.c: In function 'calc_swizzle32':
4 /home/fedora/SDL2-2.0.5/src/video/SDL_blit_N.c:127:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
5 const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00,
6 ^
8 Downloaded from upstream repo
9 https://hg.libsdl.org/SDL/rev/5184186d4366
11 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
13 diff -r 71d4148e32de -r 5184186d4366 src/video/SDL_blit_N.c
14 --- a/src/video/SDL_blit_N.c Wed Oct 19 21:22:42 2016 -0700
15 +++ b/src/video/SDL_blit_N.c Sat Oct 22 11:01:55 2016 -0700
16 @@ -118,12 +118,6 @@
17 16, 8, 0, 24,
18 0, NULL
20 - if (!srcfmt) {
21 - srcfmt = &default_pixel_format;
22 - }
23 - if (!dstfmt) {
24 - dstfmt = &default_pixel_format;
25 - }
26 const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00,
27 0x04, 0x04, 0x04, 0x04,
28 0x08, 0x08, 0x08, 0x08,
29 @@ -136,6 +130,14 @@
30 Uint32 gmask = RESHIFT(srcfmt->Gshift) << (dstfmt->Gshift);
31 Uint32 bmask = RESHIFT(srcfmt->Bshift) << (dstfmt->Bshift);
32 Uint32 amask;
34 + if (!srcfmt) {
35 + srcfmt = &default_pixel_format;
36 + }
37 + if (!dstfmt) {
38 + dstfmt = &default_pixel_format;
39 + }
41 /* Use zero for alpha if either surface doesn't have alpha */
42 if (dstfmt->Amask) {
43 amask =