From: Jose Fonseca Date: Sat, 21 Nov 2015 23:03:20 +0000 (+0000) Subject: pipe-loader: Fix PATH_MAX define on MSVC. X-Git-Tag: upstream/17.1.0~14315 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4befd82a649e926e64bc2c17cf362a84d5be42e6;p=platform%2Fupstream%2Fmesa.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 40df216..aef996c 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) = {