| Summary: | Addition of SDL_SYSWM_WAYLAND enum value breaks binary compatibility for 2.0.2 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Gerry JJ <trick> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Move the SDL_SYSWM_WAYLAND value to the end of the enum | ||
Gabriel Jacobo just committed a fix for this, so closing. Sorry for the noise |
Created attachment 1540 [details] Move the SDL_SYSWM_WAYLAND value to the end of the enum Posted about this on the mailing list, but thought I'd better file a bug report too in case you don't see it. Changeset 4fc5f66d63cc added Wayland support. The SDL_SYSWM_TYPE enum in SDL_syswm.h was modified to add the SDL_SYSWM_WAYLAND value, but it was added to the middle instead of the end, changing the values of SDL_SYSWM_DIRECTFB, SDL_SYSWM_COCOA and SDL_SYSWM_UIKIT. So, any code using those values that was compiled against SDL before this change will use the wrong value when dynamically linked against a newer version of SDL. I suggest moving the SDL_SYSWM_WAYLAND value to the end of the enum =]