mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 03:15:09 -05:00
d5c60e0aff
* gnu/packages/game-development.scm (allegro@4)[source]: Add patch. * gnu/packages/patches/allegro4-mesa-18.2.5-and-later.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it.
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
Fixes compilation with Mesa >= 18.2.5.
|
|
|
|
Modified from upstream to work on allegro4:
|
|
|
|
https://github.com/liballeg/allegro5/commit/a40d30e21802ecf5c9382cf34af9b01bd3781e47
|
|
|
|
diff --git a/addons/allegrogl/include/alleggl.h b/addons/allegrogl/include/alleggl.h
|
|
index 0f86a6768..652dd024e 100644
|
|
--- a/addons/allegrogl/include/alleggl.h
|
|
+++ b/addons/allegrogl/include/alleggl.h
|
|
@@ -103,10 +103,14 @@
|
|
|
|
/* HACK: Prevent both Mesa and SGI's broken headers from screwing us */
|
|
#define __glext_h_
|
|
+#define __gl_glext_h_
|
|
#define __glxext_h_
|
|
+#define __glx_glxext_h_
|
|
#include <GL/gl.h>
|
|
#undef __glext_h_
|
|
+#undef __gl_glext_h_
|
|
#undef __glxext_h_
|
|
+#undef __glx_glxext_h_
|
|
|
|
#endif /* ALLEGRO_MACOSX */
|
|
|
|
diff --git a/addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h b/addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h
|
|
index 49c502091..fba8aea5d 100644
|
|
--- a/addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h
|
|
+++ b/addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h
|
|
@@ -1,7 +1,9 @@
|
|
/* HACK: Prevent both Mesa and SGI's broken headers from screwing us */
|
|
#define __glxext_h_
|
|
+#define __glx_glxext_h_
|
|
#include <GL/glx.h>
|
|
#undef __glxext_h_
|
|
+#undef __glx_glxext_h_
|
|
|
|
#ifndef GLX_VERSION_1_3
|
|
#define _ALLEGRO_GLX_VERSION_1_3
|
|
--
|
|
2.20.0
|