diff options
author | Kenneth Graunke <[email protected]> | 2016-06-05 16:31:11 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-06-05 16:32:08 -0700 |
commit | f657a59d986048bb9e7298a49b8b49efcecc77d9 (patch) | |
tree | 082fc5abafb0155a175cf3a0b1bc029cf033ef32 /src/mesa | |
parent | c417c0c9c37f6cdea679e12d84cfc2ab51667cf6 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/arbprogram.c | 4 | ||||
-rw-r--r-- | src/mesa/main/shaderapi.c | 4 |
2 files changed, 8 insertions, 0 deletions
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 <stdlib.h> +#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 <stdlib.h> +#define PATH_MAX _MAX_PATH +#endif /** * Return mask of GLSL_x flags by examining the MESA_GLSL env var. |