Dov Feldstern wrote:
gcc, linux
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./.. -I../../boost
-DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS
-DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I./minizip
-Wextra -Wall -g -O -MT FileName.lo -MD -MP -MF .deps/FileName.Tpo -c
FileName.cpp -o FileName.o
FileName.cpp: In member function 'const std::string
lyx::support::DocFileName::mangledFilename(const std::string&) const':
FileName.cpp:629: error: 'max' was not declared in this scope
That must be this:
Author: uwestoehr
Date: Thu Nov 8 23:48:23 2007
New Revision: 21523
URL: http://www.lyx.org/trac/changeset/21523
Log:
FileName.cpp: compile fix
Modified:
lyx-devel/trunk/src/support/FileName.cpp
Modified: lyx-devel/trunk/src/support/FileName.cpp
URL:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/support/FileName.cpp?rev=21523
==============================================================================
--- lyx-devel/trunk/src/support/FileName.cpp (original)
+++ lyx-devel/trunk/src/support/FileName.cpp Thu Nov 8 23:48:23 2007
@@ -626,7 +626,7 @@
// If dir.size() > max length, all bets are off for YAP. We truncate
// the filename nevertheless, keeping a minimum of 10 chars.
- string::size_type max_length = std::max(100 - ((int)dir.size() + 1),
10);
+ string::size_type max_length = max(100 - ((int)dir.size() + 1), 10);
// If the mangled file name is too long, hack it to fit.
// We know we're guaranteed to have a unique file name because