xf86drmMode.h: use ANSI C99 arrays

This avoids the use of a GNU-specific extension in public headers. Also
see [1].

[1]: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/80#note_707458

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
main
Simon Ser 2020-11-26 17:20:04 +01:00 committed by Michel Dänzer
parent df373424c5
commit 31dc14840f
1 changed files with 2 additions and 2 deletions

View File

@ -560,14 +560,14 @@ extern int drmModeCreateLease(int fd, const uint32_t *objects, int num_objects,
typedef struct drmModeLesseeList { typedef struct drmModeLesseeList {
uint32_t count; uint32_t count;
uint32_t lessees[0]; uint32_t lessees[];
} drmModeLesseeListRes, *drmModeLesseeListPtr; } drmModeLesseeListRes, *drmModeLesseeListPtr;
extern drmModeLesseeListPtr drmModeListLessees(int fd); extern drmModeLesseeListPtr drmModeListLessees(int fd);
typedef struct drmModeObjectList { typedef struct drmModeObjectList {
uint32_t count; uint32_t count;
uint32_t objects[0]; uint32_t objects[];
} drmModeObjectListRes, *drmModeObjectListPtr; } drmModeObjectListRes, *drmModeObjectListPtr;
extern drmModeObjectListPtr drmModeGetLease(int fd); extern drmModeObjectListPtr drmModeGetLease(int fd);