[Mesa-dev] [PATCH 3/4] st/wgl: make stw_current_context() non-static

Jose Fonseca jfonseca at vmware.com
Thu Apr 4 07:38:43 PDT 2013



----- 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.
  
>  struct stw_framebuffer;
>  struct st_context_iface;

Either way,

  Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

Jose


More information about the mesa-dev mailing list