[Mesa-dev] [PATCH 3/4] st/wgl: make stw_current_context() non-static
Brian Paul
brianp at vmware.com
Thu Apr 4 07:42:56 PDT 2013
On 04/04/2013 08:38 AM, Jose Fonseca wrote:
>
>
> ----- Original Message -----
>> ---
>> src/gallium/state_trackers/wgl/stw_context.c | 2 +-
>> src/gallium/state_trackers/wgl/stw_context.h | 4 +++-
>> 2 files changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/gallium/state_trackers/wgl/stw_context.c
>> b/src/gallium/state_trackers/wgl/stw_context.c
>> index 1488bee..5e5b41f 100644
>> --- a/src/gallium/state_trackers/wgl/stw_context.c
>> +++ b/src/gallium/state_trackers/wgl/stw_context.c
>> @@ -48,7 +48,7 @@
>> #include "stw_tls.h"
>>
>>
>> -static INLINE struct stw_context *
>> +struct stw_context *
>> stw_current_context(void)
>> {
>> struct st_context_iface *st;
>> diff --git a/src/gallium/state_trackers/wgl/stw_context.h
>> b/src/gallium/state_trackers/wgl/stw_context.h
>> index 07a5c7d..2a4afb6 100644
>> --- a/src/gallium/state_trackers/wgl/stw_context.h
>> +++ b/src/gallium/state_trackers/wgl/stw_context.h
>> @@ -28,7 +28,7 @@
>> #ifndef STW_CONTEXT_H
>> #define STW_CONTEXT_H
>>
>> -#include<windows.h>
>> +#include "stw_icd.h"
>
> Alternatively, you could pre-declare "struct stw_context;" here.
Actually, I think I can just omit that hunk. I think it's a left-over
from something I tried earlier.
>> struct stw_framebuffer;
>> struct st_context_iface;
>
> Either way,
>
> Reviewed-by: Jose Fonseca<jfonseca at vmware.com>
Thanks.
-Brian
More information about the mesa-dev
mailing list