diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c index 3e2cc29f5d..64571b42aa 100644 --- a/src/core/linux/SDL_evdev.c +++ b/src/core/linux/SDL_evdev.c @@ -115,9 +115,7 @@ typedef struct SDL_EVDEV_PrivateData SDL_EVDEV_keyboard_state *kbd; } SDL_EVDEV_PrivateData; -#undef _THIS -#define _THIS SDL_EVDEV_PrivateData *_this -static _THIS = NULL; +static SDL_EVDEV_PrivateData *_this = NULL; static SDL_Scancode SDL_EVDEV_translate_keycode(int keycode); static void SDL_EVDEV_sync_device(SDL_evdevlist_item *item); diff --git a/src/core/linux/SDL_udev.c b/src/core/linux/SDL_udev.c index 3a3b8845cc..541de815b7 100644 --- a/src/core/linux/SDL_udev.c +++ b/src/core/linux/SDL_udev.c @@ -37,8 +37,7 @@ static const char *SDL_UDEV_LIBS[] = { "libudev.so.1", "libudev.so.0" }; -#define _THIS SDL_UDEV_PrivateData *_this -static _THIS = NULL; +static SDL_UDEV_PrivateData *_this = NULL; static SDL_bool SDL_UDEV_load_sym(const char *fn, void **addr); static int SDL_UDEV_load_syms(void);