summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-06-05 16:31:11 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-06-05 16:32:08 -0700
commitf657a59d986048bb9e7298a49b8b49efcecc77d9 (patch)
tree082fc5abafb0155a175cf3a0b1bc029cf033ef32 /src/mesa/main/shaderapi.c
parentc417c0c9c37f6cdea679e12d84cfc2ab51667cf6 (diff)
downloadexternal_mesa3d-f657a59d986048bb9e7298a49b8b49efcecc77d9.zip
external_mesa3d-f657a59d986048bb9e7298a49b8b49efcecc77d9.tar.gz
external_mesa3d-f657a59d986048bb9e7298a49b8b49efcecc77d9.tar.bz2
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 <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r--src/mesa/main/shaderapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index eb6b1f5..9d440a0 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.