Package: sdlbasic Version: 0.0.20070714-6 Followup-For: Bug #957786 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu hirsute ubuntu-patch X-Debbugs-Cc: lo...@ubuntu.com Control: tags -1 patch
Hi, In Ubuntu, the attached patch was applied to achieve the following: * d/p/gcc-10.patch: Fix compilation with GCC 10. Thanks for considering the patch. Logan
diff -Nru sdlbasic-0.0.20070714/debian/patches/gcc-10.patch sdlbasic-0.0.20070714/debian/patches/gcc-10.patch --- sdlbasic-0.0.20070714/debian/patches/gcc-10.patch 1969-12-31 19:00:00.000000000 -0500 +++ sdlbasic-0.0.20070714/debian/patches/gcc-10.patch 2021-01-09 21:27:45.000000000 -0500 @@ -0,0 +1,41 @@ +--- a/src/sdlBasic/src/sdlBrt/SDLengine/SDLengine.h ++++ b/src/sdlBasic/src/sdlBrt/SDLengine/SDLengine.h +@@ -315,14 +315,14 @@ + void crossfadehandler(int s); + int hit_pixelperfect(SDL_Surface *imga,int xa1,int ya1,int xa2,int ya2,SDL_Surface *imgb,int xb1,int yb1,int xb2,int yb2); + +-Uint32(*getpixel)(SDL_Surface *surface, int x, int y); ++extern Uint32(*getpixel)(SDL_Surface *surface, int x, int y); + Uint32 getpixel8(SDL_Surface *surface, int x, int y); + Uint32 getpixel16(SDL_Surface *surface, int x, int y); + Uint32 getpixel24BE(SDL_Surface *surface, int x, int y); + Uint32 getpixel24(SDL_Surface *surface, int x, int y); + Uint32 getpixel32(SDL_Surface *surface, int x, int y); + +-void (*putpixel)(SDL_Surface *surface, int x, int y, Uint32 col ); ++extern void (*putpixel)(SDL_Surface *surface, int x, int y, Uint32 col ); + void putpixel8(SDL_Surface *surface, int x, int y, Uint32 col ); + void putpixel16(SDL_Surface *surface, int x, int y, Uint32 col ); + void putpixel24BE(SDL_Surface *surface, int x, int y, Uint32 col ); +@@ -337,7 +337,7 @@ + void draw_ellipse(SDL_Surface *surface,int vx,int vy,int Xradius,int Yradius,Uint32 color); + void draw_fillellipse(SDL_Surface *surface,int vx,int vy,int Xradius,int Yradius,Uint32 color); + +-Uint32 (*rrgb)(int col); ++extern Uint32 (*rrgb)(int col); + Uint32 rrgb8(int col); + Uint32 rrgb16(int col); + Uint32 rrgb24(int col); +--- a/src/sdlBasic/src/sdlBrt/SDLengine/screen.c ++++ b/src/sdlBasic/src/sdlBrt/SDLengine/screen.c +@@ -28,6 +28,10 @@ + + #include "SDLengine.h" + ++Uint32(*getpixel)(SDL_Surface *surface, int x, int y); ++void (*putpixel)(SDL_Surface *surface, int x, int y, Uint32 col ); ++Uint32 (*rrgb)(int col); ++ + //_________________________________________________________________________________________________________________________ + + //SCREEN diff -Nru sdlbasic-0.0.20070714/debian/patches/series sdlbasic-0.0.20070714/debian/patches/series --- sdlbasic-0.0.20070714/debian/patches/series 2017-11-29 18:15:20.000000000 -0500 +++ sdlbasic-0.0.20070714/debian/patches/series 2021-01-09 21:25:21.000000000 -0500 @@ -9,3 +9,4 @@ quickhelp.patch link_gmodule_libs.patch useless_links.patch +gcc-10.patch