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:
cls%seawood.org
1998-11-17 16:53:02 +00:00
parent 663a7d26dc
commit fc53174a4f
7 changed files with 53 additions and 10 deletions

View File

@@ -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())) {