[Mesa-dev] [PATCH 04/11] dri_interface: drop __NOT_HAVE_DRM_H magic

Ian Romanick idr at freedesktop.org
Thu Jul 9 10:50:56 PDT 2015


On 07/08/2015 10:07 AM, Emil Velikov wrote:
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  include/GL/internal/dri_interface.h | 11 -----------
>  1 file changed, 11 deletions(-)
> 
> diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
> index c827bb6..c0545b1 100644
> --- a/include/GL/internal/dri_interface.h
> +++ b/include/GL/internal/dri_interface.h
> @@ -40,20 +40,9 @@
>  #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

Shouldn't this get changed to use HAVE_LIBDRM as in later patches?  I
guess drm_context_t and drm_drawable_t are ABI, so they shouldn't ever
change.  It does feel a little icky to redefine them when not necessary.

> -#include <drm.h>
> -#else
>  typedef unsigned int drm_context_t;
>  typedef unsigned int drm_drawable_t;
>  typedef struct drm_clip_rect drm_clip_rect_t;
> -#endif
>  
>  /**
>   * \name DRI interface structures
> 



More information about the mesa-dev mailing list