Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
SDL
> SDL-1.2.11-no_anonymus_enum.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File SDL-1.2.11-no_anonymus_enum.patch of Package SDL
g++ >= 4.0 will reject the use of anonymous types in anonymous enums when trying to instantiate a template for operator<< ================================================================================ --- include/SDL_events.h +++ include/SDL_events.h @@ -44,7 +44,7 @@ #define SDL_PRESSED 1 /* Event enumerations */ -typedef enum { +typedef enum _SDL_event_num { SDL_NOEVENT = 0, /* Unused (do not remove) */ SDL_ACTIVEEVENT, /* Application loses/gains visibility */ SDL_KEYDOWN, /* Keys pressed */ @@ -79,7 +79,7 @@ /* Predefined event masks */ #define SDL_EVENTMASK(X) (1<<(X)) -typedef enum { +typedef enum _SDL_event_mask { SDL_ACTIVEEVENTMASK = SDL_EVENTMASK(SDL_ACTIVEEVENT), SDL_KEYDOWNMASK = SDL_EVENTMASK(SDL_KEYDOWN), SDL_KEYUPMASK = SDL_EVENTMASK(SDL_KEYUP),