pipe-loader: Fix PATH_MAX define on MSVC.
authorJose Fonseca <jfonseca@vmware.com>
Sat, 21 Nov 2015 23:03:20 +0000 (23:03 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Sat, 21 Nov 2015 23:03:20 +0000 (23:03 +0000)
src/gallium/auxiliary/pipe-loader/pipe_loader.c

index 40df2167797b93a34fa4f4fb392ee9a9f539a910..aef996c461760a27878b4830d8ec82f57ea0bb8c 100644 (file)
 #include "util/u_string.h"
 #include "util/u_dl.h"
 
+#ifdef _MSC_VER
+#include <stdlib.h>
+#define PATH_MAX _MAX_PATH
+#endif
+
 #define MODULE_PREFIX "pipe_"
 
 static int (*backends[])(struct pipe_loader_device **, int) = {