Added check for ios::binary which seems to just be the new ANSI/ISO standard for ios::bin .
git-svn-id: svn://10.0.0.236/trunk@14804 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -34,9 +34,14 @@ bool compareFiles(const char* file1,const char* file2) {
|
||||
char ch1,ch2;
|
||||
int eof1,eof2;
|
||||
|
||||
#if defined(HAVE_IOS_BINARY) || !defined(XP_UNIX)
|
||||
/* XXX: HAVE_IOS_BINARY needs to be set for mac & win */
|
||||
ifstream input1(file1,ios::in && ios::binary,filebuf::openprot);
|
||||
ifstream input2(file2,ios::in && ios::binary,filebuf::openprot);
|
||||
|
||||
#else
|
||||
ifstream input1(file1,ios::in && ios::bin,filebuf::openprot);
|
||||
ifstream input2(file2,ios::in && ios::bin,filebuf::openprot);
|
||||
#endif
|
||||
while(!done) {
|
||||
|
||||
while(!(eof1=input1.eof())) {
|
||||
|
||||
Reference in New Issue
Block a user