aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-18 14:31:24 +0100
committerDavid Robillard <d@drobilla.net>2019-04-13 19:48:23 +0200
commit4f16af4faa36f47a7efba65a871a8fe22459bf5e (patch)
tree1ae2494021381fd9247c7225fbdc916c6c591ef3
parentffe660fe7a8cf97416b47a81080f4229874c5e89 (diff)
downloadserd-4f16af4faa36f47a7efba65a871a8fe22459bf5e.tar.gz
serd-4f16af4faa36f47a7efba65a871a8fe22459bf5e.tar.bz2
serd-4f16af4faa36f47a7efba65a871a8fe22459bf5e.zip
Avoid absurd Windows warnings about "deprecated" POSIX functions
-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++];