diff --git a/wsi/wayland/surface.hpp b/wsi/wayland/surface.hpp index 877ca99..f060f00 100644 --- a/wsi/wayland/surface.hpp +++ b/wsi/wayland/surface.hpp @@ -28,6 +28,9 @@ #pragma once +#ifndef __STDC_VERSION__ +#define __STDC_VERSION__ 0 +#endif #include #include "wsi/surface.hpp" diff --git a/wsi/wayland/surface_properties.cpp b/wsi/wayland/surface_properties.cpp index f1752a1..e6435b9 100644 --- a/wsi/wayland/surface_properties.cpp +++ b/wsi/wayland/surface_properties.cpp @@ -24,6 +24,10 @@ #define VK_USE_PLATFORM_WAYLAND_KHR 1 +#ifndef __STDC_VERSION__ +#define __STDC_VERSION__ 0 +#endif + #include #include diff --git a/wsi/wayland/swapchain.hpp b/wsi/wayland/swapchain.hpp index b4ffd7b..7667324 100644 --- a/wsi/wayland/swapchain.hpp +++ b/wsi/wayland/swapchain.hpp @@ -31,6 +31,9 @@ extern "C" { #include } +#ifndef __STDC_VERSION__ +#define __STDC_VERSION__ 0 +#endif #include #include #include "util/wsialloc/wsialloc.h" diff --git a/wsi/wayland/wl_helpers.hpp b/wsi/wayland/wl_helpers.hpp index 8c6d548..1f6bad6 100644 --- a/wsi/wayland/wl_helpers.hpp +++ b/wsi/wayland/wl_helpers.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019, 2021 Arm Limited. + * Copyright (c) 2017-2019, 2021, 2024 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -25,7 +25,12 @@ #pragma once #include + +#ifndef __STDC_VERSION__ +#define __STDC_VERSION__ 0 +#endif #include + #include "util/custom_allocator.hpp" /** diff --git a/wsi/wayland/wl_object_owner.hpp b/wsi/wayland/wl_object_owner.hpp index 0ed09ef..d317e28 100644 --- a/wsi/wayland/wl_object_owner.hpp +++ b/wsi/wayland/wl_object_owner.hpp @@ -24,6 +24,9 @@ #pragma once +#ifndef __STDC_VERSION__ +#define __STDC_VERSION__ 0 +#endif #include #include #include