Skip to content

Commit

Permalink
Merge pull request #569 from tpaviot/review/FixBinOcafMinGw
Browse files Browse the repository at this point in the history
Fixed file stream opening errors with MinGw
  • Loading branch information
tpaviot committed Aug 23, 2015
2 parents db9e96a + bf902fb commit 6e9f016
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ void BinLDrivers_DocumentRetrievalDriver::Read
// Open the file stream
#ifdef _MSC_VER
ifstream anIS ((const wchar_t*) theFileName.ToExtString(), ios::in | ios::binary);
#elif (defined(__MINGW32__) || defined(__MINGW64__))
ifstream anIS (aFileName.ToCString(), ios::in | ios::binary);
#else
ifstream anIS (aFileName.ToCString());
#endif
Expand Down

0 comments on commit 6e9f016

Please sign in to comment.