From df314ba93eb7b262d7b01d8bb7dfe740dd6965b7 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 9 May 2023 12:54:34 +0200 Subject: [PATCH] Remove _THIS in src/core: EVDEV UDEV --- src/core/linux/SDL_evdev.c | 4 +--- src/core/linux/SDL_udev.c | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) 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);