Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
WinRT: removed the "generic" + C++/CX hack-fix, now that a better fix…
Browse files Browse the repository at this point in the history
… is in official-SDL
  • Loading branch information
DavidLudwig committed Apr 21, 2013
1 parent 99ad2e4 commit ea1cb84
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
5 changes: 0 additions & 5 deletions include/begin_code.h
Expand Up @@ -148,8 +148,3 @@
#endif
#endif /* NULL */
#endif /* ! Mac OS X - breaks precompiled headers */

/* HACK: Make sure C++/CX works when compiling WinRT code */
#if defined(__WINRT__)
#define generic generic_
#endif
5 changes: 0 additions & 5 deletions include/close_code.h
Expand Up @@ -35,8 +35,3 @@
#endif
#pragma pack(pop)
#endif /* Compiler needs structure packing set */

/* Revert hack used to get C++/CX (WinRT) code compiling. */
#if defined(__WINRT__)
#undef generic
#endif
9 changes: 0 additions & 9 deletions src/events/SDL_events.c
Expand Up @@ -33,15 +33,6 @@
#endif
#include "../video/SDL_sysvideo.h"

/* HACK: Make sure the 'generic' field in SDL_Event works on
WinRT, whereby 'generic' is redefined as 'generic_', in order to
allow SDL.h to be included in code compiled with Microsoft's
C++/CX extension.
*/
#if defined(__WINRT__)
#define generic generic_
#endif

/* Public data -- the event filter */
SDL_EventFilter SDL_EventOK = NULL;
void *SDL_EventOKParam;
Expand Down

0 comments on commit ea1cb84

Please sign in to comment.