aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/serdi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 5c543f9d..147a68c9 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -187,8 +187,8 @@ main(int argc, char** argv)
}
#ifdef _WIN32
- _setmode(fileno(stdin), _O_BINARY);
- _setmode(fileno(stdout), _O_BINARY);
+ _setmode(_fileno(stdin), _O_BINARY);
+ _setmode(_fileno(stdout), _O_BINARY);
#endif
const char* input = (const char*)argv[a++];