src/video/mir/SDL_mirdyn.c
changeset 10089 25fda20d0173
parent 10079 6eaf52c8d398
child 10737 3406a0f8b041
     1.1 --- a/src/video/mir/SDL_mirdyn.c	Sun Feb 21 17:21:29 2016 -0500
     1.2 +++ b/src/video/mir/SDL_mirdyn.c	Sun Feb 21 15:19:35 2016 -0800
     1.3 @@ -84,6 +84,7 @@
     1.4  /* Define all the function pointers and wrappers... */
     1.5  #define SDL_MIR_MODULE(modname) int SDL_MIR_HAVE_##modname = 0;
     1.6  #define SDL_MIR_SYM(rc,fn,params) SDL_DYNMIRFN_##fn MIR_##fn = NULL;
     1.7 +#define SDL_MIR_SYM_CONST(type,name) SDL_DYMMIRCONST_##name MIR_##name = NULL;
     1.8  #include "SDL_mirsym.h"
     1.9  
    1.10  static int mir_load_refcount = 0;
    1.11 @@ -101,6 +102,7 @@
    1.12              /* set all the function pointers to NULL. */
    1.13  #define SDL_MIR_MODULE(modname) SDL_MIR_HAVE_##modname = 0;
    1.14  #define SDL_MIR_SYM(rc,fn,params) MIR_##fn = NULL;
    1.15 +#define SDL_MIR_SYM_CONST(type,name) MIR_##name = NULL;
    1.16  #include "SDL_mirsym.h"
    1.17  
    1.18  
    1.19 @@ -138,6 +140,7 @@
    1.20  
    1.21  #define SDL_MIR_MODULE(modname) thismod = &SDL_MIR_HAVE_##modname;
    1.22  #define SDL_MIR_SYM(rc,fn,params) MIR_##fn = (SDL_DYNMIRFN_##fn) MIR_GetSym(#fn,thismod);
    1.23 +#define SDL_MIR_SYM_CONST(type,name) MIR_##name = *(SDL_DYMMIRCONST_##name*) MIR_GetSym(#name,thismod);
    1.24  #include "SDL_mirsym.h"
    1.25  
    1.26          if ((SDL_MIR_HAVE_MIR_CLIENT) && (SDL_MIR_HAVE_XKBCOMMON)) {
    1.27 @@ -153,6 +156,7 @@
    1.28  
    1.29  #define SDL_MIR_MODULE(modname) SDL_MIR_HAVE_##modname = 1; /* default yes */
    1.30  #define SDL_MIR_SYM(rc,fn,params) MIR_##fn = fn;
    1.31 +#define SDL_MIR_SYM_CONST(type,name) MIR_##name = name;
    1.32  #include "SDL_mirsym.h"
    1.33  
    1.34  #endif