Remove _THIS in src/core: EVDEV UDEV

This commit is contained in:
Sylvain authored and Ryan C. Gordon committed 2023-05-09 11:29:33 -04:00
1 parent 0e1669e296
commit df314ba93e
2 files changed
+2 -5

No files matched your search

+1 -3
View File
@@ -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);
+1 -2
View File
@@ -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);