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/main/arbprogram.c | |
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/main/arbprogram.c')
-rw-r--r-- | src/mesa/main/arbprogram.c | 4 |
1 files changed, 4 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) |