xf86drmMode.h: inline -> __inline for use with gcc -std=c89 -pedantic
authorDaniel Kurtz <djkurtz@chromium.org>
Wed, 25 Mar 2015 01:01:02 +0000 (18:01 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 5 Apr 2015 14:33:33 +0000 (15:33 +0100)
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>
xf86drmMode.h

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