From 4befd82a649e926e64bc2c17cf362a84d5be42e6 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Sat, 21 Nov 2015 23:03:20 +0000 Subject: [PATCH] pipe-loader: Fix PATH_MAX define on MSVC. --- src/gallium/auxiliary/pipe-loader/pipe_loader.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.c b/src/gallium/auxiliary/pipe-loader/pipe_loader.c index 40df2167797..aef996c4617 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader.c +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.c @@ -32,6 +32,11 @@ #include "util/u_string.h" #include "util/u_dl.h" +#ifdef _MSC_VER +#include +#define PATH_MAX _MAX_PATH +#endif + #define MODULE_PREFIX "pipe_" static int (*backends[])(struct pipe_loader_device **, int) = { -- 2.30.2