[Mesa-dev] [PATCH v2] dri_interface: drop __NOT_HAVE_DRM_H magic

Ian Romanick idr at freedesktop.org
Tue Jul 21 15:34:09 PDT 2015


Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 07/21/2015 09:07 AM, Emil Velikov wrote:
> v2: use HAVE_LIBDRM macro.
> 
> Cc: Ian Romanick <ian.d.romanick at intel.com>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  include/GL/internal/dri_interface.h | 9 +--------
>  1 file changed, 1 insertion(+), 8 deletions(-)
> 
> diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
> index c827bb6..7266071 100644
> --- a/include/GL/internal/dri_interface.h
> +++ b/include/GL/internal/dri_interface.h
> @@ -40,14 +40,7 @@
>  #ifndef DRI_INTERFACE_H
>  #define DRI_INTERFACE_H
>  
> -/* For archs with no drm.h */
> -#if defined(__APPLE__) || defined(__CYGWIN__) || defined(__GNU__)
> -#ifndef __NOT_HAVE_DRM_H
> -#define __NOT_HAVE_DRM_H
> -#endif
> -#endif
> -
> -#ifndef __NOT_HAVE_DRM_H
> +#ifdef HAVE_LIBDRM
>  #include <drm.h>
>  #else
>  typedef unsigned int drm_context_t;
> 



More information about the mesa-dev mailing list