소스 검색

Fix build (C90 declaration order)

(cherry picked from commit 88bdc028ec6793c23b38e5c9c0b2cb925a3041ce)
Frank Praznik 1 년 전
부모
커밋
24269007d8
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/video/wayland/SDL_waylandmouse.c

+ 1 - 2
src/video/wayland/SDL_waylandmouse.c

@@ -380,12 +380,11 @@ static int create_buffer_from_shm(Wayland_CursorData *d,
     SDL_VideoDevice *vd = SDL_GetVideoDevice();
     SDL_VideoData *data = (SDL_VideoData *)vd->driverdata;
     struct wl_shm_pool *shm_pool;
+    int shm_fd;
 
     int stride = width * 4;
     d->shm_data_size = stride * height;
 
-    int shm_fd;
-
     shm_fd = wayland_create_tmp_file(d->shm_data_size);
     if (shm_fd < 0) {
         return SDL_SetError("Creating mouse cursor buffer failed.");