Skip to content

Commit

Permalink
SDL_evdev.c: undefine _THIS before redefining it.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sezero committed Aug 29, 2018
1 parent 92396f7 commit b6aaefc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/linux/SDL_evdev.c
Expand Up @@ -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;

Expand Down

0 comments on commit b6aaefc

Please sign in to comment.