Only include vulkan.h if we have it

This commit is contained in:
Matthias Clasen 2016-12-09 14:05:26 -05:00
parent 17c8ebc4a8
commit 5b6a837b17
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/* GDK - The GIMP Drawing Kit
*
* gdkvulkancontext-x11.c: X11 specific Vulkan wrappers
* gdkvulkancontext.c: Vulkan wrappers
*
* Copyright © 2016 Benjamin Otte
*
@ -22,7 +22,9 @@
#include "gdkvulkancontextprivate.h"
#ifdef GDK_WINDOWING_VULKAN
#include <vulkan/vulkan.h>
#endif
#include "gdkdisplayprivate.h"
#include "gdkinternals.h"

View File

@ -26,7 +26,9 @@
#include "gdkdrawcontextprivate.h"
#include "gdkinternals.h"
#ifdef GDK_WINDOWING_VULKAN
#include <vulkan/vulkan.h>
#endif
G_BEGIN_DECLS