From: George Sapountzis Date: Thu, 5 Apr 2007 16:00:47 +0000 (+0300) Subject: glx: minor cosmetic in glcontextmodes.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa1c79eaea96283e3ac7bae513b8d7535b875ce9;p=mesa.git glx: minor cosmetic in glcontextmodes.c move memory macros to separate block and unwrap malloc/free for miniglx towards cleaning Mesa core glitches in glx... --- diff --git a/src/glx/x11/glcontextmodes.c b/src/glx/x11/glcontextmodes.c index edb04463f61..c1651849031 100644 --- a/src/glx/x11/glcontextmodes.c +++ b/src/glx/x11/glcontextmodes.c @@ -31,21 +31,25 @@ * \author Ian Romanick */ +#if defined(IN_MINI_GLX) +#include +#else +#if defined(HAVE_DIX_CONFIG_H) +# include +#endif +#include +#include +#include "GL/glxint.h" +#endif + +/* Memory macros */ #if defined(IN_MINI_GLX) # include # include -# include -# include "GL/internal/dri_interface.h" -# include "imports.h" +# define _mesa_malloc(b) malloc(b) +# define _mesa_free(m) free(m) # define _mesa_memset memset #else -# if defined(HAVE_DIX_CONFIG_H) -# include -# endif -# include -# include -# include "GL/glxint.h" - # ifdef XFree86Server # include # include