We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e65f4 commit ca29623Copy full SHA for ca29623
src/basicio.cpp
@@ -45,6 +45,7 @@ namespace fs = std::filesystem;
45
46
#ifndef _WIN32
47
#define _fileno fileno
48
+#define _isatty isatty
49
#endif
50
51
namespace Exiv2 {
@@ -921,7 +922,7 @@ std::string XPathIo::writeDataToFile(const std::string& orgPath) {
921
922
auto path = stringFormat("{}{}", timestamp, XPathIo::TEMP_FILE_EXT);
923
924
if (prot == pStdin) {
- if (isatty(_fileno(stdin)))
925
+ if (_isatty(_fileno(stdin)))
926
throw Error(ErrorCode::kerInputDataReadFailed);
927
#ifdef _WIN32
928
// convert stdin to binary
0 commit comments