From f657a59d986048bb9e7298a49b8b49efcecc77d9 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 5 Jun 2016 16:31:11 -0700 Subject: [PATCH] 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 --- src/mesa/main/arbprogram.c | 4 ++++ src/mesa/main/shaderapi.c | 4 ++++ 2 files changed, 8 insertions(+) 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. -- 2.30.2