From aa1c79eaea96283e3ac7bae513b8d7535b875ce9 Mon Sep 17 00:00:00 2001 From: George Sapountzis Date: Thu, 5 Apr 2007 19:00:47 +0300 Subject: 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... --- src/glx/x11/glcontextmodes.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/glx/x11/glcontextmodes.c b/src/glx/x11/glcontextmodes.c index edb04463f6..c165184903 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 -- cgit v1.2.3