mirror of
https://github.com/italicsjenga/portability.git
synced 2025-02-23 17:47:43 +11:00
Fix build on non-unix systems
This commit is contained in:
parent
a4a6ae38d4
commit
9cfbe8d243
1 changed files with 2 additions and 2 deletions
|
@ -3158,7 +3158,7 @@ pub extern "C" fn gfxCreateXcbSurfaceKHR(
|
|||
pSurface: *mut VkSurfaceKHR,
|
||||
) -> VkResult {
|
||||
let info = unsafe { &*pCreateInfo };
|
||||
#[cfg(feature = "vulkan")]
|
||||
#[cfg(all(feature = "vulkan", target_os = "linux"))]
|
||||
{
|
||||
unsafe {
|
||||
assert_eq!(info.flags, 0);
|
||||
|
@ -3169,7 +3169,7 @@ pub extern "C" fn gfxCreateXcbSurfaceKHR(
|
|||
VkResult::VK_SUCCESS
|
||||
}
|
||||
}
|
||||
#[cfg(not(feature = "vulkan"))]
|
||||
#[cfg(not(all(feature = "vulkan", target_os = "linux")))]
|
||||
unreachable!()
|
||||
}
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Reference in a new issue