diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-06-04 10:42:05 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-06-04 10:42:05 +0800 |
commit | 0d3cbfc1667ae90dca964dfc2d8a7eb03a89e170 (patch) | |
tree | 122e15f0a11950ebb330d7a6dbf295f8d813940d /games | |
parent | 11aad78691bca3184b71eba12a1adebc054b36cc (diff) | |
download | freebsd-ports-gnome-0d3cbfc1667ae90dca964dfc2d8a7eb03a89e170.tar.gz freebsd-ports-gnome-0d3cbfc1667ae90dca964dfc2d8a7eb03a89e170.tar.zst freebsd-ports-gnome-0d3cbfc1667ae90dca964dfc2d8a7eb03a89e170.zip |
- Fix build with clang
Diffstat (limited to 'games')
-rw-r--r-- | games/chroma/files/patch-sdlshadowdisplay.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/games/chroma/files/patch-sdlshadowdisplay.c b/games/chroma/files/patch-sdlshadowdisplay.c new file mode 100644 index 000000000000..057e2f505e04 --- /dev/null +++ b/games/chroma/files/patch-sdlshadowdisplay.c @@ -0,0 +1,47 @@ +--- sdlshadowdisplay.c.orig 2010-03-01 10:07:00.000000000 +0300 ++++ sdlshadowdisplay.c 2013-06-04 03:08:27.120111885 +0400 +@@ -88,7 +88,7 @@ + void displayshadowed_level(struct level* plevel); + void displayshadowed_movers(struct level* plevel, int redraw); + +-inline void displayshadowed_piece(struct level* plevel, int p, int x, int y, int d) ++static inline void displayshadowed_piece(struct level* plevel, int p, int x, int y, int d) + { + SDL_Surface *pimage; + +@@ -255,7 +255,7 @@ + } + } + +-inline void displayshadowed_pieceshadow(struct level* plevel, int p, int x, int y, int d) ++static inline void displayshadowed_pieceshadow(struct level* plevel, int p, int x, int y, int d) + { + SDL_Surface *pimage; + +@@ -310,7 +310,7 @@ + SDL_BlitSurface(pimage, &srect, screen_surface, &drect); + } + +-inline void displayshadowed_piecebase(struct level* plevel, int x, int y) ++static inline void displayshadowed_piecebase(struct level* plevel, int x, int y) + { + int p; + SDL_Surface *pimage; +@@ -1063,7 +1063,7 @@ + } + } + +-inline void displayshadowed_redrawpiece(int p, int x, int y, int d) ++static inline void displayshadowed_redrawpiece(int p, int x, int y, int d) + { + int dx, dy; + +@@ -1111,7 +1111,7 @@ + screen_redraw(0, 0, screen_width, screen_height); + } + +-inline int displayshadowed_count(struct level* plevel, int x, int y, int delta) ++static inline int displayshadowed_count(struct level* plevel, int x, int y, int delta) + { + unsigned int d; + |