aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 384fc1c7..b4ee19ef 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -179,8 +179,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++];