mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +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 <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ int main(int argc, char* argv[])
|
|||||||
setEncoding(consoleOut, CP_OEMCP);
|
setEncoding(consoleOut, CP_OEMCP);
|
||||||
} // else AUTO
|
} // else AUTO
|
||||||
#endif
|
#endif
|
||||||
std::ifstream file(argv[2]);
|
cmsys::ifstream file(argv[2]);
|
||||||
if (!file.is_open()) {
|
if (!file.is_open()) {
|
||||||
std::cout << "Failed to open file: " << argv[2] << std::endl;
|
std::cout << "Failed to open file: " << argv[2] << std::endl;
|
||||||
return 2;
|
return 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user