Fixed redefinition of typedef warnings and errors on BSD
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Aug 2017 00:51:14 -0700
changeset 11384269bdd5aa742
parent 11383 6cafb5954aaf
child 11385 1b4ef2593eca
Fixed redefinition of typedef warnings and errors on BSD
src/video/x11/SDL_x11vulkan.c
src/video/x11/SDL_x11vulkan.h
     1.1 --- a/src/video/x11/SDL_x11vulkan.c	Mon Aug 28 00:43:14 2017 -0700
     1.2 +++ b/src/video/x11/SDL_x11vulkan.c	Mon Aug 28 00:51:14 2017 -0700
     1.3 @@ -29,9 +29,11 @@
     1.4  #include "SDL_x11vulkan.h"
     1.5  
     1.6  #include <X11/Xlib.h>
     1.7 -//#include <xcb/xcb.h>
     1.8 +/*#include <xcb/xcb.h>*/
     1.9 +/*
    1.10  typedef uint32_t xcb_window_t;
    1.11  typedef uint32_t xcb_visualid_t;
    1.12 +*/
    1.13  
    1.14  int X11_Vulkan_LoadLibrary(_THIS, const char *path)
    1.15  {
     2.1 --- a/src/video/x11/SDL_x11vulkan.h	Mon Aug 28 00:43:14 2017 -0700
     2.2 +++ b/src/video/x11/SDL_x11vulkan.h	Mon Aug 28 00:51:14 2017 -0700
     2.3 @@ -27,7 +27,7 @@
     2.4  
     2.5  #if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_X11
     2.6  
     2.7 -typedef struct xcb_connection_t xcb_connection_t;
     2.8 +/*typedef struct xcb_connection_t xcb_connection_t;*/
     2.9  typedef xcb_connection_t *(*PFN_XGetXCBConnection)(Display *dpy);
    2.10  
    2.11  int X11_Vulkan_LoadLibrary(_THIS, const char *path);