mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +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