[Mesa-dev] [PATCH 1/2] gallium/hud: support GALLIUM_HUD_DUMP_DIR feature on Windows

Emil Velikov emil.l.velikov at gmail.com
Sat Jun 17 12:50:36 UTC 2017


On 16 June 2017 at 23:39, Brian Paul <brianp at vmware.com> wrote:
> Use a dummy implementation of the access() function.  Use \ path separator.
> Add a few comments.
> ---
>  src/gallium/auxiliary/hud/hud_context.c | 36 +++++++++++++++++++++++++++------
>  1 file changed, 30 insertions(+), 6 deletions(-)
>
> diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
> index 9dd2fbf..cb7ed44 100644
> --- a/src/gallium/auxiliary/hud/hud_context.c
> +++ b/src/gallium/auxiliary/hud/hud_context.c
> @@ -958,26 +958,50 @@ static void strcat_without_spaces(char *dst, const char *src)
>     *dst = 0;
>  }
>
> +
> +#ifdef PIPE_OS_WINDOWS
> +#define W_OK 0
> +static int
> +access(const char *pathname, int mode)
Windows has the _access and _access_s which seem to provide equivalent
functionality, right?

JFYI, by no means an objection/blocker.

-Emil


More information about the mesa-dev mailing list