-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ozone/wayland: remove CHROME_WAYLAND_CHECK_VERSION from wayland_object.h
Currently, CHROME_WAYLAND_CHECK_VERSION is used for some Wayland interface listener declarations, to prevent "Excess elements in struct initializer" errors when compiling with older versions of libwayland (use_system_libwayland = true). We can instead check if the matching <INTERFACE>_<EVENT>_SINCE_VERSION variable has been `#define`d to guard the listener declarations. This is more readable and does not require manually checking since what version of the Wayland protocol the event exists. This CL does not touch CHROME_WAYLAND_CHECK_VERSION in //third_party/wayland/stubs/libwayland_variadic_support.cc. Bug: 578890 Change-Id: Iedb052be87feba15d41bdbb4c4d6c4bfb4d9457d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4013308 Reviewed-by: Alexander Dunaev <adunaev@igalia.com> Commit-Queue: Max Ihlenfeldt <max@igalia.com> Cr-Commit-Position: refs/heads/main@{#1069084}
- Loading branch information
1 parent
6e4aff8
commit baf075c
Showing
3 changed files
with
14 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters