|
From: Milan M. <mil...@gm...> - 2007-06-25 13:16:19
|
Milan Mimica wrote: > > Then I'm going to apply such patch that keeps AGL compatible with > allegro version < 4.2.2. > Commited this one: --- trunk/include/alleggl.h 2007-06-05 08:30:07 UTC (rev 1240) +++ trunk/include/alleggl.h 2007-06-25 13:13:08 UTC (rev 1241) @@ -68,8 +68,14 @@ #include "allegrogl/gl_ext.h" #ifdef ALLEGRO_WITH_XWINDOWS -#ifndef HAVE_LIBPTHREAD -# error AllegroGL requires Allegro to have pthread support enabled! +#if (ALLEGRO_SUB_VERSION == 2) && (ALLEGRO_WIP_VERSION < 2) +# ifndef HAVE_LIBPTHREAD +# error AllegroGL requires Allegro to have pthread support enabled! +# endif +#else +# ifndef ALLEGRO_HAVE_LIBPTHREAD +# error AllegroGL requires Allegro to have pthread support enabled! +# endif #endif #include <alleggl_config.h> #endif -- Milan Mimica http://sparklet.sf.net |