src/video/wayland/SDL_waylanddyn.c
changeset 10079 6eaf52c8d398
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
     1.1 --- a/src/video/wayland/SDL_waylanddyn.c	Wed Feb 17 14:15:37 2016 -0800
     1.2 +++ b/src/video/wayland/SDL_waylanddyn.c	Thu Feb 18 23:27:58 2016 -0500
     1.3 @@ -94,9 +94,6 @@
     1.4  #define SDL_WAYLAND_SYM(rc,fn,params) SDL_DYNWAYLANDFN_##fn WAYLAND_##fn = NULL;
     1.5  #define SDL_WAYLAND_INTERFACE(iface) const struct wl_interface *WAYLAND_##iface = NULL;
     1.6  #include "SDL_waylandsym.h"
     1.7 -#undef SDL_WAYLAND_MODULE
     1.8 -#undef SDL_WAYLAND_SYM
     1.9 -#undef SDL_WAYLAND_INTERFACE
    1.10  
    1.11  static int wayland_load_refcount = 0;
    1.12  
    1.13 @@ -115,9 +112,6 @@
    1.14  #define SDL_WAYLAND_SYM(rc,fn,params) WAYLAND_##fn = NULL;
    1.15  #define SDL_WAYLAND_INTERFACE(iface) WAYLAND_##iface = NULL;
    1.16  #include "SDL_waylandsym.h"
    1.17 -#undef SDL_WAYLAND_MODULE
    1.18 -#undef SDL_WAYLAND_SYM
    1.19 -#undef SDL_WAYLAND_INTERFACE
    1.20  
    1.21  
    1.22  #ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
    1.23 @@ -150,20 +144,12 @@
    1.24          }
    1.25  
    1.26  #define SDL_WAYLAND_MODULE(modname) SDL_WAYLAND_HAVE_##modname = 1; /* default yes */
    1.27 -#define SDL_WAYLAND_SYM(rc,fn,params)
    1.28 -#define SDL_WAYLAND_INTERFACE(iface)
    1.29  #include "SDL_waylandsym.h"
    1.30 -#undef SDL_WAYLAND_MODULE
    1.31 -#undef SDL_WAYLAND_SYM
    1.32 -#undef SDL_WAYLAND_INTERFACE
    1.33  
    1.34  #define SDL_WAYLAND_MODULE(modname) thismod = &SDL_WAYLAND_HAVE_##modname;
    1.35  #define SDL_WAYLAND_SYM(rc,fn,params) WAYLAND_##fn = (SDL_DYNWAYLANDFN_##fn) WAYLAND_GetSym(#fn,thismod);
    1.36  #define SDL_WAYLAND_INTERFACE(iface) WAYLAND_##iface = (struct wl_interface *) WAYLAND_GetSym(#iface,thismod);
    1.37  #include "SDL_waylandsym.h"
    1.38 -#undef SDL_WAYLAND_MODULE
    1.39 -#undef SDL_WAYLAND_SYM
    1.40 -#undef SDL_WAYLAND_INTERFACE
    1.41  
    1.42          if (SDL_WAYLAND_HAVE_WAYLAND_CLIENT) {
    1.43              /* all required symbols loaded. */
    1.44 @@ -180,9 +166,6 @@
    1.45  #define SDL_WAYLAND_SYM(rc,fn,params) WAYLAND_##fn = fn;
    1.46  #define SDL_WAYLAND_INTERFACE(iface) WAYLAND_##iface = &iface;
    1.47  #include "SDL_waylandsym.h"
    1.48 -#undef SDL_WAYLAND_MODULE
    1.49 -#undef SDL_WAYLAND_SYM
    1.50 -#undef SDL_WAYLAND_INTERFACE
    1.51  
    1.52  #endif
    1.53      }