From b6aaefc79132f2fbe0d08a66f4a1105e6fcf7760 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 29 Aug 2018 11:04:02 +0300 Subject: [PATCH] SDL_evdev.c: undefine _THIS before redefining it. src/core/linux/SDL_evdev.c:104:1: warning: "_THIS" redefined In file included from src/core/linux/../../events/SDL_events_c.h:26, from src/core/linux/SDL_evdev.c:45: src/core/linux/../../events/../video/SDL_sysvideo.h:146:1: warning: this is the location of the previous definition --- src/core/linux/SDL_evdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c index a50692617..5443c2198 100644 --- a/src/core/linux/SDL_evdev.c +++ b/src/core/linux/SDL_evdev.c @@ -101,6 +101,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;