summaryrefslogtreecommitdiffstats
path: root/src/loader
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-11-15 13:50:48 -0800
committerEric Anholt <[email protected]>2018-11-16 15:38:18 -0800
commitcc198157382a988590b0288d287281139c5f73e6 (patch)
tree8a41f69cd46df25d88ec77c497ae72fc9f260c35 /src/loader
parent2bc1f5c2e70fe3b4d41f060af9859bc2a94c5b62 (diff)
loader: Stop using a local definition for an in-tree header
I need other types from the header now, and "gl.h is big" is not a good reason to duplicate definitions. Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/loader')
-rw-r--r--src/loader/loader.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/loader/loader.c b/src/loader/loader.c
index 461f96aa6a4..041a59212be 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -41,6 +41,8 @@
#ifdef MAJOR_IN_SYSMACROS
#include <sys/sysmacros.h>
#endif
+#include <GL/gl.h>
+#include <GL/internal/dri_interface.h>
#include "loader.h"
#ifdef HAVE_LIBDRM
@@ -492,14 +494,6 @@ loader_set_logger(void (*logger)(int level, const char *fmt, ...))
log_ = logger;
}
-/* XXX: Local definition to avoid pulling the heavyweight GL/gl.h and
- * GL/internal/dri_interface.h
- */
-
-#ifndef __DRI_DRIVER_GET_EXTENSIONS
-#define __DRI_DRIVER_GET_EXTENSIONS "__driDriverGetExtensions"
-#endif
-
char *
loader_get_extensions_name(const char *driver_name)
{