| Summary: | KMOD_* flags unnecessarily macros; breaks OGRE | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Rainer Deyke <rainerd> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
Patch that fixes the problem
fixed patch |
||
Created attachment 4425 [details]
fixed patch
Looks good, thanks! https://hg.libsdl.org/SDL/rev/15a0bc9612e9 |
Created attachment 4424 [details] Patch that fixes the problem While most of the KMOD_* flags are enums, the combination flags KMOD_CTRL, KMOD_ALT, KMOD_SHIFT and KMOD_GUI are defined as macros. This breaks third-party code that uses these KMOD_* names for local identifiers, such as OGRE. The correct thing to do is to make them all enums.