aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kurtz2015-03-24 20:01:02 -0500
committerEmil Velikov2015-04-05 09:33:33 -0500
commitd20314d083e533e3b8753192b1846752341afbbe (patch)
tree0db288bd9972a65b0875f50962fb7e8a63d2657a /xf86drmMode.h
parent1490055bc05fa941b59d10e89ef3fccd673af477 (diff)
downloadexternal-libgbm-d20314d083e533e3b8753192b1846752341afbbe.tar.gz
external-libgbm-d20314d083e533e3b8753192b1846752341afbbe.tar.xz
external-libgbm-d20314d083e533e3b8753192b1846752341afbbe.zip
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>
Diffstat (limited to 'xf86drmMode.h')
-rw-r--r--xf86drmMode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drmMode.h b/xf86drmMode.h
index 856a6bb0..2d30184e 100644
--- a/xf86drmMode.h
+++ b/xf86drmMode.h
@@ -240,7 +240,7 @@ typedef struct _drmModeProperty {
240 uint32_t *blob_ids; /* store the blob IDs */ 240 uint32_t *blob_ids; /* store the blob IDs */
241} drmModePropertyRes, *drmModePropertyPtr; 241} drmModePropertyRes, *drmModePropertyPtr;
242 242
243static inline int drm_property_type_is(drmModePropertyPtr property, 243static __inline int drm_property_type_is(drmModePropertyPtr property,
244 uint32_t type) 244 uint32_t type)
245{ 245{
246 /* instanceof for props.. handles extended type vs original types: */ 246 /* instanceof for props.. handles extended type vs original types: */