Set Win32 file i/o to binary mode.

This is i.e. necessary to have the file based webserver-example successfully read 'contiki.gif'.
This commit is contained in:
Oliver Schmidt 2015-06-14 17:48:36 +02:00
parent 35becbbcb5
commit 74db518846

View file

@ -36,6 +36,7 @@
#include <windows.h> #include <windows.h>
#include <winsock2.h> #include <winsock2.h>
#include <stdio.h> #include <stdio.h>
#include <fcntl.h>
#include "contiki-net.h" #include "contiki-net.h"
@ -101,6 +102,8 @@ char **contiki_argv;
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
_set_fmode(O_BINARY);
contiki_argc = argc; contiki_argc = argc;
contiki_argv = argv; contiki_argv = argv;