mirror of
https://gitlab.freedesktop.org/mesa/vulkan-wsi-layer.git
synced 2025-12-20 08:00:12 +01:00
Fix build issue with newer Wayland headers
This commit is contained in:
parent
0c4356ed7d
commit
3f9d76b9fa
5 changed files with 19 additions and 1 deletions
|
|
@ -28,6 +28,9 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef __STDC_VERSION__
|
||||||
|
#define __STDC_VERSION__ 0
|
||||||
|
#endif
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
|
|
||||||
#include "wsi/surface.hpp"
|
#include "wsi/surface.hpp"
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,10 @@
|
||||||
|
|
||||||
#define VK_USE_PLATFORM_WAYLAND_KHR 1
|
#define VK_USE_PLATFORM_WAYLAND_KHR 1
|
||||||
|
|
||||||
|
#ifndef __STDC_VERSION__
|
||||||
|
#define __STDC_VERSION__ 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
#include <linux-dmabuf-unstable-v1-client-protocol.h>
|
#include <linux-dmabuf-unstable-v1-client-protocol.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,9 @@ extern "C" {
|
||||||
#include <vulkan/vk_icd.h>
|
#include <vulkan/vk_icd.h>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __STDC_VERSION__
|
||||||
|
#define __STDC_VERSION__ 0
|
||||||
|
#endif
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
#include <linux-dmabuf-unstable-v1-client-protocol.h>
|
#include <linux-dmabuf-unstable-v1-client-protocol.h>
|
||||||
#include "util/wsialloc/wsialloc.h"
|
#include "util/wsialloc/wsialloc.h"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2017-2019, 2021 Arm Limited.
|
* Copyright (c) 2017-2019, 2021, 2024 Arm Limited.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
|
|
@ -25,7 +25,12 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifndef __STDC_VERSION__
|
||||||
|
#define __STDC_VERSION__ 0
|
||||||
|
#endif
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
|
|
||||||
#include "util/custom_allocator.hpp"
|
#include "util/custom_allocator.hpp"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef __STDC_VERSION__
|
||||||
|
#define __STDC_VERSION__ 0
|
||||||
|
#endif
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
#include <linux-dmabuf-unstable-v1-client-protocol.h>
|
#include <linux-dmabuf-unstable-v1-client-protocol.h>
|
||||||
#include <linux-explicit-synchronization-unstable-v1-protocol.h>
|
#include <linux-explicit-synchronization-unstable-v1-protocol.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue