diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-12-09 14:05:26 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-12-09 14:05:26 -0500 |
commit | 5b6a837b1731b61ee841e9c58e8b5171bb817a7a (patch) | |
tree | d1a61b4db8687638ac92ac9d85276e93aef08283 /gdk | |
parent | 17c8ebc4a8bac95190206744b3712ad9bc1fbc71 (diff) | |
download | gtk+-5b6a837b1731b61ee841e9c58e8b5171bb817a7a.tar.gz |
Only include vulkan.h if we have it
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdkvulkancontext.c | 4 | ||||
-rw-r--r-- | gdk/gdkvulkancontextprivate.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c index 399cd984d0..c5763c4a49 100644 --- a/gdk/gdkvulkancontext.c +++ b/gdk/gdkvulkancontext.c @@ -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" diff --git a/gdk/gdkvulkancontextprivate.h b/gdk/gdkvulkancontextprivate.h index 1d56de8fdc..42fdbacffd 100644 --- a/gdk/gdkvulkancontextprivate.h +++ b/gdk/gdkvulkancontextprivate.h @@ -26,7 +26,9 @@ #include "gdkdrawcontextprivate.h" #include "gdkinternals.h" +#ifdef GDK_WINDOWING_VULKAN #include <vulkan/vulkan.h> +#endif G_BEGIN_DECLS |