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

Commit

Permalink
future-proofing for Microsoft's C++/CX extensions, whereby "generic" …
Browse files Browse the repository at this point in the history
…is a reserved keyword
  • Loading branch information
DavidLudwig committed Apr 21, 2013
1 parent 0ff02eb commit e529f20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/SDL_events.h
Expand Up @@ -124,11 +124,11 @@ typedef enum
/**
* \brief Fields shared by every event
*/
typedef struct SDL_GenericEvent
typedef struct SDL_CommonEvent
{
Uint32 type;
Uint32 timestamp;
} SDL_GenericEvent;
} SDL_CommonEvent;

/**
* \brief Window state change event data (event.window.*)
Expand Down Expand Up @@ -464,7 +464,7 @@ typedef struct SDL_SysWMEvent
typedef union SDL_Event
{
Uint32 type; /**< Event type, shared with all events */
SDL_GenericEvent generic; /**< Generic event data */
SDL_CommonEvent common; /**< Common event data */
SDL_WindowEvent window; /**< Window event data */
SDL_KeyboardEvent key; /**< Keyboard event data */
SDL_TextEditingEvent edit; /**< Text editing event data */
Expand Down
2 changes: 1 addition & 1 deletion src/events/SDL_events.c
Expand Up @@ -365,7 +365,7 @@ int
SDL_PushEvent(SDL_Event * event)
{
SDL_EventWatcher *curr;
event->generic.timestamp = SDL_GetTicks();
event->common.timestamp = SDL_GetTicks();
if (SDL_EventOK && !SDL_EventOK(SDL_EventOKParam, event)) {
return 0;
}
Expand Down

0 comments on commit e529f20

Please sign in to comment.