From: Jose Fonseca Date: Sat, 21 Nov 2015 23:03:20 +0000 (+0000) Subject: pipe-loader: Fix PATH_MAX define on MSVC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4befd82a649e926e64bc2c17cf362a84d5be42e6;p=mesa.git pipe-loader: Fix PATH_MAX define on MSVC. --- 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) = {