From 67b88e46b04a9a42a735f88066872821caab8e7d Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sun, 30 Jun 2024 09:01:15 +0300 Subject: [PATCH] Fix __VA_OPT__ macro invocations --- include/backend/drm/drm.h | 2 +- include/render/vulkan.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index e0037dc8..d154d37f 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -225,7 +225,7 @@ struct wlr_drm_layer *get_drm_layer(struct wlr_drm_backend *drm, #define wlr_drm_conn_log(conn, verb, fmt, ...) \ wlr_log(verb, "connector %s: " fmt, conn->name __VA_OPT__(,) __VA_ARGS__) #define wlr_drm_conn_log_errno(conn, verb, fmt, ...) \ - wlr_log_errno(verb, "connector %s: " fmt, conn->name __VA_OPT(,) __VA_ARGS__) + wlr_log_errno(verb, "connector %s: " fmt, conn->name __VA_OPT__(,) __VA_ARGS__) #else diff --git a/include/render/vulkan.h b/include/render/vulkan.h index 7abcf3ef..29403f01 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -518,7 +518,7 @@ void vulkan_change_layout(VkCommandBuffer cb, VkImage img, #if __STDC_VERSION__ >= 202311L #define wlr_vk_error(fmt, res, ...) wlr_log(WLR_ERROR, fmt ": %s (%d)", \ - vulkan_strerror(res), res __VA_OPT(,) __VA_ARGS__) + vulkan_strerror(res), res __VA_OPT__(,) __VA_ARGS__) #else