mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(Wayland) wl_array_for_each macro fails with CXX_BUILD - have to
roll our own macro instead doing it right
This commit is contained in:
parent
499235cd40
commit
8e638f435a
@ -60,6 +60,11 @@
|
|||||||
/* Generated from xdg-decoration-unstable-v1.h */
|
/* Generated from xdg-decoration-unstable-v1.h */
|
||||||
#include "../common/wayland/xdg-decoration-unstable-v1.h"
|
#include "../common/wayland/xdg-decoration-unstable-v1.h"
|
||||||
|
|
||||||
|
#define WL_ARRAY_FOR_EACH(pos, array, type) \
|
||||||
|
for (pos = (type)(array)->data; \
|
||||||
|
(const char *) pos < ((const char *) (array)->data + (array)->size); \
|
||||||
|
(pos)++)
|
||||||
|
|
||||||
typedef struct touch_pos
|
typedef struct touch_pos
|
||||||
{
|
{
|
||||||
bool active;
|
bool active;
|
||||||
@ -663,7 +668,7 @@ static void handle_toplevel_config(void *data,
|
|||||||
wl->fullscreen = false;
|
wl->fullscreen = false;
|
||||||
wl->maximized = false;
|
wl->maximized = false;
|
||||||
|
|
||||||
wl_array_for_each((void*)state, states)
|
WL_ARRAY_FOR_EACH(state, states, const uint32_t*)
|
||||||
{
|
{
|
||||||
switch (*state)
|
switch (*state)
|
||||||
{
|
{
|
||||||
@ -742,7 +747,7 @@ static void handle_zxdg_toplevel_config(
|
|||||||
wl->fullscreen = false;
|
wl->fullscreen = false;
|
||||||
wl->maximized = false;
|
wl->maximized = false;
|
||||||
|
|
||||||
wl_array_for_each((void*)state, states)
|
WL_ARRAY_FOR_EACH(state, states, const uint32_t*)
|
||||||
{
|
{
|
||||||
switch (*state)
|
switch (*state)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user