Skip to content

Commit

Permalink
Patched to compile on C89 compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 8, 2015
1 parent 8da7e8a commit 88e85f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/wayland/SDL_waylandvideo.c
Expand Up @@ -199,14 +199,15 @@ static const struct wl_output_listener output_listener = {
static void
Wayland_add_display(SDL_VideoData *d, uint32_t id)
{
struct wl_output *output;
SDL_VideoDisplay *display = SDL_malloc(sizeof *display);
if (!display) {
SDL_OutOfMemory();
return;
}
SDL_zero(*display);

struct wl_output *output = wl_registry_bind(d->registry, id, &wl_output_interface, 2);
output = wl_registry_bind(d->registry, id, &wl_output_interface, 2);
if (!output) {
SDL_SetError("Failed to retrieve output.");
return;
Expand Down

0 comments on commit 88e85f4

Please sign in to comment.