Upstream patch to fix build with GCC 5
Obtained from the LGames Subversion repository with the following command:
svn diff -c164 svn://svn.code.sf.net/p/lgames/code/trunk/ltris
Signed-off-by: Rodrigo Rebello <rprebello@gmail.com>
------------------------------------------------------------------------
r164 | kulkanie | 2015-05-16 05:48:02 -0300 (Sat, 16 May 2015) | 1 line
removed all inline keywords
------------------------------------------------------------------------
Line added to LTris ChangeLog concerning the change:
- removed all inline keywords to work with GCC 5 (2015/05/16 MS)
===================================================================
--- a/src/sdl.c (revision 163)
+++ b/src/sdl.c (revision 164)
/* return full path of bitmap */
-inline void get_full_bmp_path( char *full_path, char *file_name )
+void get_full_bmp_path( char *full_path, char *file_name )
sprintf(full_path, "%s/gfx/%s", SRC_DIR, file_name );
-inline void lock_surf(SDL_Surface *sur)
+void lock_surf(SDL_Surface *sur)
-inline void unlock_surf(SDL_Surface *sur)
+void unlock_surf(SDL_Surface *sur)
-inline void lock_font(Font *fnt)
+void lock_font(Font *fnt)
if (SDL_MUSTLOCK(fnt->pic))
SDL_LockSurface(fnt->pic);
-inline void unlock_font(Font *fnt)
+void unlock_font(Font *fnt)
if (SDL_MUSTLOCK(fnt->pic))
SDL_UnlockSurface(fnt->pic);
update rectangle (0,0,0,0)->fullscreen
-inline void refresh_screen(int x, int y, int w, int h)
+void refresh_screen(int x, int y, int w, int h)
SDL_UpdateRect(sdl.screen, x, y, w, h);
-inline void lock_screen()
if (SDL_MUSTLOCK(sdl.screen))
SDL_LockSurface(sdl.screen);
-inline void unlock_screen()