From: Kenneth Graunke Date: Sun, 5 Jun 2016 23:31:11 +0000 (-0700) Subject: mesa: Try to unbreak the MSVC build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f657a59d986048bb9e7298a49b8b49efcecc77d9;p=mesa.git mesa: Try to unbreak the MSVC build. PATH_MAX is apparently not a thing on Windows. Borrow the hack from pipe_loader.c to try and make this work. Signed-off-by: Kenneth Graunke --- diff --git a/src/mesa/main/arbprogram.c b/src/mesa/main/arbprogram.c index c0786d4230d..911b6fa3960 100644 --- a/src/mesa/main/arbprogram.c +++ b/src/mesa/main/arbprogram.c @@ -41,6 +41,10 @@ #include "program/program.h" #include "program/prog_print.h" +#ifdef _MSC_VER +#include +#define PATH_MAX _MAX_PATH +#endif /** * Bind a program (make it current) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index eb6b1f5a7e8..9d440a0fd03 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -60,6 +60,10 @@ #include "util/hash_table.h" #include "util/mesa-sha1.h" +#ifdef _MSC_VER +#include +#define PATH_MAX _MAX_PATH +#endif /** * Return mask of GLSL_x flags by examining the MESA_GLSL env var.