Update of /cvsroot/mahogany/M/src/mail
In directory usw-pr-cvs1:/tmp/cvs-serv32167/src/mail
Modified Files:
SendMessageCC.cpp
Log Message:
real compilation fix for gcc 3.0
Index: SendMessageCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/SendMessageCC.cpp,v
retrieving revision 1.183
retrieving revision 1.184
diff -b -u -2 -r1.183 -r1.184
--- SendMessageCC.cpp 19 Mar 2002 00:02:12 -0000 1.183
+++ SendMessageCC.cpp 19 Mar 2002 00:40:11 -0000 1.184
@@ -1629,6 +1629,9 @@
SendMessageCC::WriteToFile(const String &filename, bool append)
{
+ // note that we have to repeat ios::out and binary below, otherwise gcc 3.0
+ // refuses to compile it as it converts everything to int and then fails
ofstream ostr(filename.c_str(),
- ios::out | ios::binary | (append ? 0 : ios:trunc));
+ append ? ios::out | ios::binary
+ : ios::out | ios::binary | ios:trunc);
bool ok = !(!ostr || ostr.bad());
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates