summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-07-07 15:13:46 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-07-22 16:33:11 +0100
commit0efd773f719dd2deddb4b6703edf022b294cd349 (patch)
tree4b99ee1ad033f0286f916d1368e41893ba692c61 /include
parent816e4c1b5e2887c45ffa69d41c8106e7b31977fb (diff)
dri_interface: drop __NOT_HAVE_DRM_H magic
v2: use HAVE_LIBDRM macro. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/GL/internal/dri_interface.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index c827bb640f..72660718bd 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;