mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 20:20:21 +01:00
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>
This commit is contained in:
parent
df373424c5
commit
31dc14840f
1 changed files with 2 additions and 2 deletions
|
|
@ -560,14 +560,14 @@ extern int drmModeCreateLease(int fd, const uint32_t *objects, int num_objects,
|
|||
|
||||
typedef struct drmModeLesseeList {
|
||||
uint32_t count;
|
||||
uint32_t lessees[0];
|
||||
uint32_t lessees[];
|
||||
} drmModeLesseeListRes, *drmModeLesseeListPtr;
|
||||
|
||||
extern drmModeLesseeListPtr drmModeListLessees(int fd);
|
||||
|
||||
typedef struct drmModeObjectList {
|
||||
uint32_t count;
|
||||
uint32_t objects[0];
|
||||
uint32_t objects[];
|
||||
} drmModeObjectListRes, *drmModeObjectListPtr;
|
||||
|
||||
extern drmModeObjectListPtr drmModeGetLease(int fd);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue