summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-11-01 10:48:50 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-11-01 10:48:50 (GMT)
commit35a55ddea4d942344eb49b28efe15889e7d023f0 (patch)
treef8c6d6d34271464daafca1a25f58a4fa3d3f44ad /src
parent25552628432676df568eb422dfb11430bce82888 (diff)
downloadQt-35a55ddea4d942344eb49b28efe15889e7d023f0.zip
Qt-35a55ddea4d942344eb49b28efe15889e7d023f0.tar.gz
Qt-35a55ddea4d942344eb49b28efe15889e7d023f0.tar.bz2
Compile when PATH_MAX is not defined
FILENAME_MAX is part of the C++ standard (defined in <cstdio>) Reviewed-by: Markus Goetz
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qfsfileengine_win.cpp4
1 files changed, 4 insertions, 0 deletions
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;