diff --git a/intern/ghost/intern/GHOST_ContextVK.hh b/intern/ghost/intern/GHOST_ContextVK.hh index 7d6252ab1c5..4b4676fcdea 100644 --- a/intern/ghost/intern/GHOST_ContextVK.hh +++ b/intern/ghost/intern/GHOST_ContextVK.hh @@ -19,7 +19,12 @@ #elif defined(__APPLE__) # include "GHOST_SystemCocoa.hh" #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 # include "GHOST_SystemWayland.hh" # else @@ -40,9 +45,11 @@ #endif typedef enum { +#ifdef WITH_GHOST_X11 GHOST_kVulkanPlatformX11 = 0, +#endif #ifdef WITH_GHOST_WAYLAND - GHOST_kVulkanPlatformWayland, + GHOST_kVulkanPlatformWayland = 1, #endif } GHOST_TVulkanPlatformType;