[PATCH 1/3] Add _DRM_HIDDEN macro

Tilman Sauerbeck tilman at code-monkey.de
Sat Jun 12 07:49:09 PDT 2010


Julien Cristau [2010-06-10 23:50]:
> Introduce a new internal header since that doesn't seem to exist yet.
> Or maybe I should rename xf86atomic.h instead.
> ---
>  xf86drm-internals.h |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
>  create mode 100644 xf86drm-internals.h
> 
> diff --git a/xf86drm-internals.h b/xf86drm-internals.h
> new file mode 100644
> index 0000000..bf5ff51
> --- /dev/null
> +++ b/xf86drm-internals.h
> @@ -0,0 +1,12 @@
> +#ifndef XF86DRM_INTERNALS_H
> +#define XF86DRM_INTERNALS_H
> +
> +#if defined(__GNUC__) && (__GNUC__ >= 4)
> +# define _DRM_HIDDEN      __attribute__((visibility("hidden")))
> +#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
> +# define _DRM_HIDDEN      __hidden
> +#else /* not gcc >= 4 and not Sun Studio >= 8 */
> +# define _X_HIDDEN
            ^^^^^^^^^
This should say _DRM_HIDDEN, I guess :)

> +#endif /* GNUC >= 4 */
> +
> +#endif
> -- 
> 1.7.1
 
Regards,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20100612/8503c099/attachment.pgp>


More information about the dri-devel mailing list