src/events/SDL_events.c
changeset 8461 ca8dad9be3d4
parent 7037 3fedf1f25b94
child 8464 a2a909304cfe
     1.1 --- a/src/events/SDL_events.c	Sun Apr 14 11:42:55 2013 -0400
     1.2 +++ b/src/events/SDL_events.c	Sun Apr 14 11:45:01 2013 -0400
     1.3 @@ -33,6 +33,15 @@
     1.4  #endif
     1.5  #include "../video/SDL_sysvideo.h"
     1.6  
     1.7 +/* HACK: Make sure the 'generic' field in SDL_Event works on
     1.8 +   WinRT, whereby 'generic' is redefined as 'generic_', in order to
     1.9 +   allow SDL.h to be included in code compiled with Microsoft's
    1.10 +   C++/CX extension.
    1.11 +*/
    1.12 +#if defined(__WINRT__)
    1.13 +#define generic generic_
    1.14 +#endif
    1.15 +
    1.16  /* Public data -- the event filter */
    1.17  SDL_EventFilter SDL_EventOK = NULL;
    1.18  void *SDL_EventOKParam;