File update-SDL2-definitions.patch of Package amoebax
diff -Naur prisonbreak-1.2.0.org/lib/benzaiten/lib/SDL2/include/SDL_opengl.h prisonbreak-1.2.0/lib/benzaiten/lib/SDL2/include/SDL_opengl.h --- prisonbreak-1.2.0.org/lib/benzaiten/lib/SDL2/include/SDL_opengl.h 2020-02-08 10:55:32.529545959 +0100 +++ prisonbreak-1.2.0/lib/benzaiten/lib/SDL2/include/SDL_opengl.h 2020-03-18 09:10:01.395220424 +0100 @@ -113,7 +113,9 @@ /* Header file version number, required by OpenGL ABI for Linux */ /* glext.h last updated $Date: 2010-08-03 01:30:25 -0700 (Tue, 03 Aug 2010) $ */ /* Current version at http://www.opengl.org/registry/ */ +#if !defined(GL_GLEXT_VERSION) #define GL_GLEXT_VERSION 64 +#endif /* Function declaration macros - to move into glplatform.h */ #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) diff -Naur prisonbreak-1.2.0.org/lib/benzaiten/lib/SDL2/src/video/x11/SDL_x11sym.h prisonbreak-1.2.0/lib/benzaiten/lib/SDL2/src/video/x11/SDL_x11sym.h --- prisonbreak-1.2.0.org/lib/benzaiten/lib/SDL2/src/video/x11/SDL_x11sym.h 2020-02-08 10:55:32.585546353 +0100 +++ prisonbreak-1.2.0/lib/benzaiten/lib/SDL2/src/video/x11/SDL_x11sym.h 2020-03-18 09:09:00.846778191 +0100 @@ -103,7 +103,7 @@ SDL_X11_SYM(int,XUnmapWindow,(Display* a,Window b),(a,b),return) SDL_X11_SYM(int,XWarpPointer,(Display* a,Window b,Window c,int d,int e,unsigned int f,unsigned int g,int h,int i),(a,b,c,d,e,f,g,h,i),return) SDL_X11_SYM(VisualID,XVisualIDFromVisual,(Visual* a),(a),return) -SDL_X11_SYM(XExtDisplayInfo*,XextAddDisplay,(XExtensionInfo* a,Display* b,char* c,XExtensionHooks* d,int e,XPointer f),(a,b,c,d,e,f),return) +SDL_X11_SYM(XExtDisplayInfo*,XextAddDisplay,(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f),(a,b,c,d,e,f),return) SDL_X11_SYM(XExtensionInfo*,XextCreateExtension,(void),(),return) SDL_X11_SYM(void,XextDestroyExtension,(XExtensionInfo* a),(a),) SDL_X11_SYM(XExtDisplayInfo*,XextFindDisplay,(XExtensionInfo* a,Display* b),(a,b),return) @@ -158,7 +158,7 @@ */ #ifdef LONG64 SDL_X11_MODULE(IO_32BIT) -SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) +SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return) SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),) #endif