[Mesa-dev] [PATCH mesa 3/4] vulkan/wsi: s/#if/#ifdef/ to fix -Wundef

Eric Engestrom eric.engestrom at intel.com
Sun Oct 28 13:45:07 UTC 2018


Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
 src/vulkan/wsi/wsi_common_display.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vulkan/wsi/wsi_common_display.h b/src/vulkan/wsi/wsi_common_display.h
index 50d7f836a754d3ef488c..be0bd4e06fb9c818eed5 100644
--- a/src/vulkan/wsi/wsi_common_display.h
+++ b/src/vulkan/wsi/wsi_common_display.h
@@ -115,7 +115,7 @@ wsi_release_display(VkPhysicalDevice            physical_device,
                     VkDisplayKHR                display);
 
 
-#if VK_USE_PLATFORM_XLIB_XRANDR_EXT
+#ifdef VK_USE_PLATFORM_XLIB_XRANDR_EXT
 VkResult
 wsi_acquire_xlib_display(VkPhysicalDevice       physical_device,
                          struct wsi_device      *wsi_device,
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list