From 3c7f9d692abfaf401427e3ee4092539eee43d3a8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 28 Aug 2017 00:51:14 -0700 Subject: [PATCH] Fixed redefinition of typedef warnings and errors on BSD --- src/video/x11/SDL_x11vulkan.c | 4 +++- src/video/x11/SDL_x11vulkan.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/video/x11/SDL_x11vulkan.c b/src/video/x11/SDL_x11vulkan.c index 3894f3792..d4eb12537 100644 --- a/src/video/x11/SDL_x11vulkan.c +++ b/src/video/x11/SDL_x11vulkan.c @@ -29,9 +29,11 @@ #include "SDL_x11vulkan.h" #include -//#include +/*#include */ +/* typedef uint32_t xcb_window_t; typedef uint32_t xcb_visualid_t; +*/ int X11_Vulkan_LoadLibrary(_THIS, const char *path) { diff --git a/src/video/x11/SDL_x11vulkan.h b/src/video/x11/SDL_x11vulkan.h index d94b6a00b..f6cd1ee5a 100644 --- a/src/video/x11/SDL_x11vulkan.h +++ b/src/video/x11/SDL_x11vulkan.h @@ -27,7 +27,7 @@ #if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_X11 -typedef struct xcb_connection_t xcb_connection_t; +/*typedef struct xcb_connection_t xcb_connection_t;*/ typedef xcb_connection_t *(*PFN_XGetXCBConnection)(Display *dpy); int X11_Vulkan_LoadLibrary(_THIS, const char *path);