src/core/linux/SDL_dbus.c
changeset 11839 971881e55d61
parent 11811 5d94cb6b24d3
child 11868 5ec7bc5b3d12
equal deleted inserted replaced
11838:5ef6e4e70103 11839:971881e55d61
    31 
    31 
    32 static int
    32 static int
    33 LoadDBUSSyms(void)
    33 LoadDBUSSyms(void)
    34 {
    34 {
    35     #define SDL_DBUS_SYM2(x, y) \
    35     #define SDL_DBUS_SYM2(x, y) \
    36         if (!(dbus.x = SDL_LoadFunction(dbus_handle, #y))) return -1
    36         if (!(*(void**)&dbus.x = SDL_LoadFunction(dbus_handle, #y))) return -1
    37         
    37         
    38     #define SDL_DBUS_SYM(x) \
    38     #define SDL_DBUS_SYM(x) \
    39         SDL_DBUS_SYM2(x, dbus_##x)
    39         SDL_DBUS_SYM2(x, dbus_##x)
    40 
    40 
    41     SDL_DBUS_SYM(bus_get_private);
    41     SDL_DBUS_SYM(bus_get_private);