setbfree: 0.8.12 -> 0.8.13 (#372025)
[NixPkgs.git] / pkgs / by-name / me / meterbridge / fix_build_with_gcc-5.patch
bloba738cd0b82a9288f9b70a9e494a065e9b698acb6
1 Description: Fix build with gcc-5
2 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778003
3 Author: Jaromír Mikeš <mira.mikes@seznam.cz>
4 Forwarded: No
6 Index: meterbridge/src/linedraw.h
7 ===================================================================
8 --- meterbridge.orig/src/linedraw.h
9 +++ meterbridge/src/linedraw.h
10 @@ -1,7 +1,7 @@
11 #ifndef LINEDRAW_H
12 #define LINEDRAW_H
14 -inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col);
15 +void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col);
17 void draw_ptr(SDL_Surface *surface, int x1, int y1, int x2, int y2, Uint32 nedle_col, Uint32 aa_col);
19 Index: meterbridge/src/linedraw.c
20 ===================================================================
21 --- meterbridge.orig/src/linedraw.c
22 +++ meterbridge/src/linedraw.c
23 @@ -4,7 +4,7 @@
24 /* set a pixel on an SDL_Surface, assumes that the surface is 32bit RGBA,
25 * ordered ABGR (I think), probably wont work on bigendian systems */
27 -inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col)
28 +void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col)
30 Uint32 *bufp = (Uint32 *)surface->pixels + y*surface->pitch/4 + x;
31 *bufp = col;