xf86drmMode.h: inline -> __inline for use with gcc -std=c89 -pedantic

Unfortunately, there are some users of libdrm installed headers that like
to be built with -std=c89 -pedantic, which does not like "inline".

However, __inline works.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
main
Daniel Kurtz 2015-03-24 18:01:02 -07:00 committed by Emil Velikov
parent 1490055bc0
commit d20314d083
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ typedef struct _drmModeProperty {
uint32_t *blob_ids; /* store the blob IDs */ uint32_t *blob_ids; /* store the blob IDs */
} drmModePropertyRes, *drmModePropertyPtr; } drmModePropertyRes, *drmModePropertyPtr;
static inline int drm_property_type_is(drmModePropertyPtr property, static __inline int drm_property_type_is(drmModePropertyPtr property,
uint32_t type) uint32_t type)
{ {
/* instanceof for props.. handles extended type vs original types: */ /* instanceof for props.. handles extended type vs original types: */