File: gcc-10.patch

package info (click to toggle)
sdlbasic 0.0.20070714-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 8,036 kB
  • sloc: cpp: 49,901; ansic: 19,239; yacc: 1,232; makefile: 1,029; sh: 64
file content (41 lines) | stat: -rw-r--r-- 1,809 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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