loader: Stop using a local definition for an in-tree header
authorEric Anholt <eric@anholt.net>
Thu, 15 Nov 2018 21:50:48 +0000 (13:50 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 16 Nov 2018 23:38:18 +0000 (15:38 -0800)
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 <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/loader/loader.c

index 461f96aa6a448272dedd154fc6c9045ddbb83b7c..041a59212be79efb1f607805cf0ae9719d5b9a67 100644 (file)
@@ -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)
 {