mirror of
https://github.com/reactos/CMake.git
synced 2024-11-30 23:10:26 +00:00
testEncoding: use cmsys::ifstream
This commit is contained in:
parent
8647c6cd68
commit
f8ed8bef84
@ -1,4 +1,4 @@
|
||||
#include <fstream>
|
||||
#include <cmsys/FStream.hxx>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
@ -39,7 +39,7 @@ int main(int argc, char* argv[])
|
||||
setEncoding(consoleOut, CP_OEMCP);
|
||||
} // else AUTO
|
||||
#endif
|
||||
std::ifstream file(argv[2]);
|
||||
cmsys::ifstream file(argv[2]);
|
||||
if (!file.is_open()) {
|
||||
std::cout << "Failed to open file: " << argv[2] << std::endl;
|
||||
return 2;
|
||||
|
Loading…
Reference in New Issue
Block a user