util/test: Use MAX_PATH on Windows
[mesa.git] / src / util / process_test.c
index 708c2766eb97f45d7d7ee1fd69c796a910f2d0ea..00703df6034c9b274cfbd60db7e14c5ee8eee6ce 100644 (file)
 #include <limits.h>
 #include <stdlib.h>
 
+#if DETECT_OS_WINDOWS && !defined(PATH_MAX)
+#include <windows.h>
+#define PATH_MAX MAX_PATH
+#endif
+
 bool error = false;
 
 static void