All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xf86drmMode.h: inline -> __inline for use with gcc -std=c89 -pedantic
@ 2015-03-25  1:01 Daniel Kurtz
  2015-03-26 15:12 ` Emil Velikov
  2015-04-05 14:32 ` Emil Velikov
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Kurtz @ 2015-03-25  1:01 UTC (permalink / raw)
  To: dri-devel, Rob Clark; +Cc: Emil Velikov

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>
---
 xf86drmMode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xf86drmMode.h b/xf86drmMode.h
index 856a6bb..2d30184 100644
--- a/xf86drmMode.h
+++ b/xf86drmMode.h
@@ -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: */
-- 
2.2.0.rc0.207.ga3a616c

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-05 14:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-25  1:01 [PATCH] xf86drmMode.h: inline -> __inline for use with gcc -std=c89 -pedantic Daniel Kurtz
2015-03-26 15:12 ` Emil Velikov
2015-03-26 15:38   ` Daniel Kurtz
2015-03-26 16:21     ` Emil Velikov
2015-03-26 16:57       ` randyf
2015-03-29 16:20         ` Emil Velikov
2015-04-05 14:32 ` Emil Velikov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.