GHOST: remove X11 include when WITH_GHOST_X11=11

This commit is contained in:
Campbell Barton 2023-12-02 15:27:51 +11:00
parent 95f620fd3d
commit 5b7175c982
1 changed files with 9 additions and 2 deletions

View File

@ -19,7 +19,12 @@
#elif defined(__APPLE__) #elif defined(__APPLE__)
# include "GHOST_SystemCocoa.hh" # include "GHOST_SystemCocoa.hh"
#else #else
# include "GHOST_SystemX11.hh" # ifdef WITH_GHOST_X11
# include "GHOST_SystemX11.hh"
# else
# define Display void
# define Window void *
# endif
# ifdef WITH_GHOST_WAYLAND # ifdef WITH_GHOST_WAYLAND
# include "GHOST_SystemWayland.hh" # include "GHOST_SystemWayland.hh"
# else # else
@ -40,9 +45,11 @@
#endif #endif
typedef enum { typedef enum {
#ifdef WITH_GHOST_X11
GHOST_kVulkanPlatformX11 = 0, GHOST_kVulkanPlatformX11 = 0,
#endif
#ifdef WITH_GHOST_WAYLAND #ifdef WITH_GHOST_WAYLAND
GHOST_kVulkanPlatformWayland, GHOST_kVulkanPlatformWayland = 1,
#endif #endif
} GHOST_TVulkanPlatformType; } GHOST_TVulkanPlatformType;