[Mesa-dev] [PATCH 4/5] loader: Stop using a local definition for an in-tree header
Eric Anholt
eric at anholt.net
Thu Nov 15 23:05:26 UTC 2018
I need other types from the header now, and "gl.h is big" is not a good
reason to duplicate definitions.
---
src/loader/loader.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/loader/loader.c b/src/loader/loader.c
index 461f96aa6a44..041a59212be7 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)
{
--
2.19.1
More information about the mesa-dev
mailing list