Fixed bug 3746 - remove SDLCALL attribute from SDL_BlitFunc() funcptr
authorSam Lantinga
Sun, 13 Aug 2017 21:09:00 -0700
changeset 112731a13003276fc
parent 11272 d60ede5a0c2e
child 11274 daea00fb0938
Fixed bug 3746 - remove SDLCALL attribute from SDL_BlitFunc() funcptr

Ozkan Sezer

The attached patch removes SDLCALL attribute from SDL_BlitFunc() funcptr.

As far as I can see, *SDL_BlitFunc() is completely internal to SDL with
no specific calling convention requirements. The actual functions assigned
to SDL_BlitFunc seem to not have any calling conventions specified. So,
easy solution is simply removing the strict calling convention from the
type.
src/video/SDL_blit.h
     1.1 --- a/src/video/SDL_blit.h	Sun Aug 13 21:06:52 2017 -0700
     1.2 +++ b/src/video/SDL_blit.h	Sun Aug 13 21:09:00 2017 -0700
     1.3 @@ -70,7 +70,8 @@
     1.4      Uint8 r, g, b, a;
     1.5  } SDL_BlitInfo;
     1.6  
     1.7 -typedef void (SDLCALL * SDL_BlitFunc) (SDL_BlitInfo * info);
     1.8 +typedef void (*SDL_BlitFunc) (SDL_BlitInfo *info);
     1.9 +
    1.10  
    1.11  typedef struct
    1.12  {