From: Emil Velikov <emil.l.velikov@gmail.com>
To: Daniel Kurtz <djkurtz@chromium.org>,
dri-devel@lists.freedesktop.org, Rob Clark <robdclark@gmail.com>
Cc: emil.l.velikov@gmail.com
Subject: Re: [PATCH] xf86drmMode.h: inline -> __inline for use with gcc -std=c89 -pedantic
Date: Thu, 26 Mar 2015 15:12:59 +0000 [thread overview]
Message-ID: <551421FB.2020905@gmail.com> (raw)
In-Reply-To: <1427245262-28865-1-git-send-email-djkurtz@chromium.org>
Hi Daniel,
On 25/03/15 01:01, Daniel Kurtz wrote:
> 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,
Can you share the name of those users ?
From a quick look clang and gcc are ok with this change, although some
versions of the Sun compiler are not. Considering that most programs try
to use c99 and later, might I suggest that you add a trivial wrapper in
your program ? Something along the lines of
#ifndef inline
#define inline __inline
#endif
-Emil
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-03-26 15:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=551421FB.2020905@gmail.com \
--to=emil.l.velikov@gmail.com \
--cc=djkurtz@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=robdclark@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.