Skip to content

Commit

Permalink
Fixed redefinition of typedef warnings and errors on BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 28, 2017
1 parent 50efbda commit 3c7f9d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/video/x11/SDL_x11vulkan.c
Expand Up @@ -29,9 +29,11 @@
#include "SDL_x11vulkan.h"

#include <X11/Xlib.h>
//#include <xcb/xcb.h>
/*#include <xcb/xcb.h>*/
/*
typedef uint32_t xcb_window_t;
typedef uint32_t xcb_visualid_t;
*/

int X11_Vulkan_LoadLibrary(_THIS, const char *path)
{
Expand Down
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11vulkan.h
Expand Up @@ -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);
Expand Down

0 comments on commit 3c7f9d6

Please sign in to comment.