From 35a55ddea4d942344eb49b28efe15889e7d023f0 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 1 Nov 2010 11:48:50 +0100 Subject: Compile when PATH_MAX is not defined FILENAME_MAX is part of the C++ standard (defined in ) Reviewed-by: Markus Goetz --- src/corelib/io/qfsfileengine_win.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/corelib/io/qfsfileengine_win.cpp b/src/corelib/io/qfsfileengine_win.cpp index 3f11c39..71b10b4 100644 --- a/src/corelib/io/qfsfileengine_win.cpp +++ b/src/corelib/io/qfsfileengine_win.cpp @@ -73,6 +73,10 @@ #define SPI_GETPLATFORMTYPE 257 #endif +#ifndef PATH_MAX +#define PATH_MAX FILENAME_MAX +#endif + #ifndef _INTPTR_T_DEFINED #ifdef _WIN64 typedef __int64 intptr_t; -- cgit v0.12