aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-14 16:27:06 +0200
committerDavid Robillard <d@drobilla.net>2020-08-14 19:07:52 +0200
commit31fb42796f0adb6dc5e7b2f84539b734e7a2262e (patch)
tree96aa00578ccdfe26e5b16600fef4a92db7e6d5f4 /src/serdi.c
parent4103d14a3a17fe34303d5078c480c43f4e9143a5 (diff)
downloadserd-31fb42796f0adb6dc5e7b2f84539b734e7a2262e.tar.gz
serd-31fb42796f0adb6dc5e7b2f84539b734e7a2262e.tar.bz2
serd-31fb42796f0adb6dc5e7b2f84539b734e7a2262e.zip
Avoid absurd Windows warnings about "deprecated" POSIX functions
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 604a54fa..ec961f5c 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -233,8 +233,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 uint8_t* input = (const uint8_t*)argv[a++];