From: Brian Paul Date: Mon, 13 Jun 2005 14:07:14 +0000 (+0000) Subject: mingw changes (Nolan Leake) X-Git-Tag: 062012170305~22450 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d218885ecb0bf82cbfd33da1b9186bf6e09375b;p=profile%2Fivi%2Fmesa.git mingw changes (Nolan Leake) --- diff --git a/src/mesa/drivers/windows/gdi/wgl.c b/src/mesa/drivers/windows/gdi/wgl.c index 7f7937c..fcb2423 100644 --- a/src/mesa/drivers/windows/gdi/wgl.c +++ b/src/mesa/drivers/windows/gdi/wgl.c @@ -1,4 +1,4 @@ -/* $Id: wgl.c,v 1.7 2005/05/24 21:12:43 kschultz Exp $ */ +/* $Id: wgl.c,v 1.8 2005/06/13 14:07:15 brianp Exp $ */ /* * This library is free software; you can redistribute it and/or @@ -35,9 +35,10 @@ #define _GDI32_ #include -#include "wmesadef.h" /* headers for Mesa Windows driver source code */ #include "GL/wmesa.h" /* protos for wmesa* functions */ +typedef struct wmesa_context *PWMC; + /* * Pixel Format Descriptors */ diff --git a/src/mesa/drivers/windows/icd/icd.c b/src/mesa/drivers/windows/icd/icd.c index 969f530..4bc6176 100644 --- a/src/mesa/drivers/windows/icd/icd.c +++ b/src/mesa/drivers/windows/icd/icd.c @@ -45,13 +45,13 @@ extern "C" { #include #include -#include "../gdi/wmesadef.h" #include "GL/wmesa.h" #include "mtypes.h" #include "glapi.h" #define MAX_MESA_ATTRS 20 +typedef struct wmesa_context *PWMC; typedef struct _icdTable { DWORD size; diff --git a/src/mesa/drivers/windows/icd/mesa.def b/src/mesa/drivers/windows/icd/mesa.def index 263b9d4..1826192 100644 --- a/src/mesa/drivers/windows/icd/mesa.def +++ b/src/mesa/drivers/windows/icd/mesa.def @@ -76,7 +76,6 @@ EXPORTS _mesa_test_proxy_teximage _mesa_Viewport _swrast_Accum - _swrast_alloc_buffers _swrast_Bitmap _swrast_CopyPixels _swrast_DrawBuffer @@ -98,7 +97,6 @@ EXPORTS _swrast_DestroyContext _swrast_InvalidateState _swrast_ReadPixels - _swrast_zbuffer_address _swsetup_Wakeup _swsetup_CreateContext _swsetup_DestroyContext diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h index f8ea238..abb8586 100644 --- a/src/mesa/main/glheader.h +++ b/src/mesa/main/glheader.h @@ -81,6 +81,9 @@ #if _MSC_VER == 1200 typedef UINT_PTR uintptr_t; #endif +#if defined(__MINGW32__) +#include +#endif #else #include #endif